|
|
@ -46,7 +46,7 @@ func GetPayResult(dbname, order_sn, wx_appid, wx_mch_id, wx_mch_serial_no, wx_mc |
|
|
|
log.Println("平台证书有误:", err) |
|
|
|
return false, nil, errors.New("平台证书不正确") |
|
|
|
} |
|
|
|
client, err = CreateClient(ctx, wechatPayCertificate, privateKey, wx_mch_id, wx_mch_serial_no) |
|
|
|
client, err = CreatePayClient(ctx, wechatPayCertificate, privateKey, wx_mch_id, wx_mch_serial_no) |
|
|
|
if err != nil { |
|
|
|
log.Println("create pay client error:", err) |
|
|
|
return false, nil, errors.New("构造失败") |
|
|
|