上传配置代码

This commit is contained in:
liwei1dao 2022-12-20 18:13:11 +08:00
parent fe15e3e2df
commit 8b6e0660b6
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ func (this *Api_Comp) PayDelivery(c *engine.Context) {
)
defer func() {
if payresp.Code != 0 {
if payresp.Code == pb.ErrorCode_PayOrderCompleted {
if payresp.Code != pb.ErrorCode_PayOrderCompleted {
c.JSON(http.StatusOK, &PayDeliveryResults{Code: 2})
} else {
c.JSON(http.StatusOK, &PayDeliveryResults{Code: 3, State: 1})

View File

@ -25,8 +25,8 @@ func (*GameLibraryHistoryData) GetTypeId() int32 {
func (_v *GameLibraryHistoryData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; if _v.Histroy, _ok_ = _buf["histroy"].(string); !_ok_ { err = errors.New("histroy error"); return } }
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
{ var _ok_ bool; if _v.Txt, _ok_ = _buf["txt"].(string); !_ok_ { err = errors.New("txt error"); return } }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["name"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Name error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Name, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["txt"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Txt error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Txt, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
{
var _arr_ []interface{}
var _ok_ bool