Commit 094d0cca by mushishixian

修复

parent bec4cb04
Showing with 2 additions and 1 deletions
...@@ -134,6 +134,7 @@ func SyncOutStoreData(operate string, message OutStoreMessage) (err error) { ...@@ -134,6 +134,7 @@ func SyncOutStoreData(operate string, message OutStoreMessage) (err error) {
return err return err
} }
if err = resp.ToJSON(&respData); err != nil { if err = resp.ToJSON(&respData); err != nil {
err = errors.New(fmt.Sprintf("%s", resp))
return err return err
} }
if respData.Errcode != 0 { if respData.Errcode != 0 {
...@@ -142,7 +143,7 @@ func SyncOutStoreData(operate string, message OutStoreMessage) (err error) { ...@@ -142,7 +143,7 @@ func SyncOutStoreData(operate string, message OutStoreMessage) (err error) {
} }
//都没问题,代表后端那边已经成功修改,修改同步表的状态 //都没问题,代表后端那边已经成功修改,修改同步表的状态
if err = logic.SyncOutStoreSuccess(billId, false); err != nil { if err = logic.SyncOutStoreSuccess(billId, false); err != nil {
return err return
} }
} }
return return
......
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 sign in to comment