Commit 34c5793e authored by hujiebin's avatar hujiebin

Update group_room_visit500.go

parent 9d94b31c
......@@ -56,7 +56,7 @@ func getGroupCountry(groupId string) string {
func getArea(country string) string {
code := "非阿语区"
var area int
if err := mysql.ProdReadOnlyDB.Table("res_country").Where("name = ?", country).Select("area").Scan(&code).Error; err != nil {
if err := mysql.ProdReadOnlyDB.Table("res_country").Where("name = ?", country).Select("area").Scan(&area).Error; err != nil {
panic(err)
}
if area == 1 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment