修改tencent回调,领取奖励部分
This commit is contained in:
@ -11,7 +11,6 @@ import (
|
||||
"server/api/reward/v1"
|
||||
"server/internal/model"
|
||||
"server/internal/service"
|
||||
"server/utility/ecode"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@ -46,23 +45,14 @@ func (c *ControllerV1) Callback(ctx context.Context, req *v1.CallbackReq) (res *
|
||||
Num: int(req.Num),
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
//return &v1.CallbackRes{
|
||||
// AppId: appid,
|
||||
// Datas: out.Datas,
|
||||
// Errcode: out.Errcode,
|
||||
// Errmsg: out.Errmsg,
|
||||
// OrderId: out.OrderId,
|
||||
//}, nil
|
||||
|
||||
marshal, err := json.Marshal(out)
|
||||
|
||||
if err != nil {
|
||||
return nil, ecode.Fail.Sub("序列化 json 数据出现异常")
|
||||
glog.Error(ctx, "序列化 json 数据出现异常")
|
||||
g.RequestFromCtx(ctx).Response.Write(marshal)
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
g.RequestFromCtx(ctx).Response.Write(marshal)
|
||||
return nil, nil
|
||||
//return &v1.CallbackRes{Errcode: 0, OrderId: req.OrderId, Datas: []v1.CallbackData{{PrizeCode: req.OrderId}}}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user