1
This commit is contained in:
@@ -1842,7 +1842,7 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
|
||||
if err != nil || storeDetail == nil {
|
||||
return 0, fmt.Errorf("基础门店信息异常,请联系管理员")
|
||||
}
|
||||
if storeDetail != nil && payload["address"].(string) != storeDetail.Address {
|
||||
if storeDetail != nil && payload["address"] != nil && payload["address"].(string) != storeDetail.Address {
|
||||
// 修改门店地址
|
||||
storeDetail.Address = payload["address"].(string)
|
||||
dao.UpdateEntity(db, storeDetail, "Address")
|
||||
|
||||
Reference in New Issue
Block a user