+ OpenRemoteStoreByJxStatus

This commit is contained in:
gazebo
2019-07-19 14:27:48 +08:00
parent 1096613dd5
commit 7f94f15dca
6 changed files with 154 additions and 68 deletions

View File

@@ -318,3 +318,13 @@ func (c *PurchaseHandler) OnStoreMsg(msg *jdapi.CallbackOrderMsg) (response *jda
// }
return jdapi.Err2CallbackResponse(err, "")
}
func (c *PurchaseHandler) UpdateStoreStatus(ctx *jxcontext.Context, storeID int, vendorStoreID string, status int) (err error) {
_, closeStatus := JxStoreStatus2JdStatus(status)
if globals.EnableJdStoreWrite {
err = api.JdAPI.UpdateStoreInfo4Open(vendorStoreID, ctx.GetUserName(), map[string]interface{}{
"closeStatus": closeStatus,
})
}
return err
}