Commit f15080d6 by dliangx

update

parent 7a98add5
......@@ -71,7 +71,7 @@ func Auth(ctx context.Context, c *app.RequestContext) {
return
}
_, err = db.DB.Exec("update loan_orderinfo set serialno = ?,disburse_sign_url=?,amount_r=?,term_r=? where order_sn=? ",
_, err = db.DB.Exec("update loan_orderinfo set serial_no = ?,disburse_sign_url=?,amount_r=?,term_r=? where order_sn=? ",
&req.Request.DuebillNoOrg, &req.Request.JumURL, &req.Request.LoanAmt, &req.Request.Term, &ordersn)
if err != nil {
log.Println(err)
......
package handler
import (
"encoding/json"
"fmt"
"testing"
......@@ -16,6 +17,10 @@ func TestAuthEncrypt(t *testing.T) {
resp.Response.DirectURL = "https://baidu.com"
resp.Response.PayOrderNo = "2239999999"
cresp, err := model.EncryptAndSign(resp)
fmt.Println(cresp)
fmt.Println(err)
if err != nil {
fmt.Println(err)
}
jsonResp, _ := json.Marshal(cresp)
fmt.Println(string(jsonResp))
}
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