Commit 96bf3406 authored by zhengxiuming's avatar zhengxiuming

bugfix

parent 5c203d69
......@@ -383,6 +383,7 @@ func lakala_post(input *models.PlaceAnOrderParamInput, url, order_id string, dat
return errors.New("拉卡拉返回值「out_trade_no」为空错误"), "", temp
}
out_trade_no := temp2["out_trade_no"].(string)
trade_no := temp2["trade_no"].(string)
if temp2["acc_resp_fields"] == "" {
return errors.New("拉卡拉返回值「acc_resp_fields」为空错误"), "", temp
......@@ -391,7 +392,7 @@ func lakala_post(input *models.PlaceAnOrderParamInput, url, order_id string, dat
url := temp3["code"].(string)
//out_trade_no := temp3["out_trade_no"].(string)
response["url"] = url + "?biz_content={\"out_trade_no\":\"" + out_trade_no + "\"}"
response["url"] = url + "?biz_content={\"out_trade_no\":\"" + out_trade_no + "\", \"trade_no\":\"" + trade_no + "\"}"
return nil, response["url"], temp
} else if source_code == 9 {
//扫码枪
......
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 to comment