作者 郭盛
1 个管道 的构建 通过 耗费 2 秒

文件下载调试

... ... @@ -113,7 +113,7 @@ class Pay extends Api
$result = $app->order->unify([
'body' => '山东航拍',
'out_trade_no' => $data['num'],//支付订单号
'total_fee' => $data['total']*100,//单位分
'total_fee' => 1*100,//单位分
'notify_url' => 'https://areial.w.broing.cn/api/pay/vippayOrderNotify', // 支付结果通知网址,如果不设置则会使用配置里的默认地址
'trade_type' => 'JSAPI', // 请对应换成你的支付方式对应的值类型
'openid' => $openid['openid'],
... ... @@ -141,8 +141,8 @@ class Pay extends Api
}
/**
* @ApiTitle (图片购买支付)
* @ApiSummary (图片购买支付)
* @ApiTitle (购买支付)
* @ApiSummary (购买支付)
* @ApiMethod (POST)
* @ApiRoute (/api/pay/picpay)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
... ... @@ -470,7 +470,6 @@ class Pay extends Api
->find();
//return_code 表示通信状态
if ($message['return_code'] === 'SUCCESS') {
if ($message['result_code'] === 'SUCCESS') {
//支付成功,更新订单状态
$toporder['status'] = 2;
... ...