正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -172,12 +172,12 @@ class Store extends Api | @@ -172,12 +172,12 @@ class Store extends Api | ||
172 | $payment = $app->payment; | 172 | $payment = $app->payment; |
173 | // 获取支付参数 | 173 | // 获取支付参数 |
174 | $attributes = [ | 174 | $attributes = [ |
175 | + 'trade_type' => 'JSAPI', // 请对应换成你的支付方式对应的值类型 | ||
175 | 'body' => '发布招募合伙人', | 176 | 'body' => '发布招募合伙人', |
176 | 'out_trade_no' => $order_sn, | 177 | 'out_trade_no' => $order_sn, |
177 | 'total_fee' => 1, // $param['money'] * 100 | 178 | 'total_fee' => 1, // $param['money'] * 100 |
178 | 'spbill_create_ip' => request()->ip(), // 可选,如不传该参数,SDK 将会自动获取相应 IP 地址 | 179 | 'spbill_create_ip' => request()->ip(), // 可选,如不传该参数,SDK 将会自动获取相应 IP 地址 |
179 | 'notify_url' => url('index/ajax/notify',[],true,true), // 支付结果通知网址,如果不设置则会使用配置里的默认地址 | 180 | 'notify_url' => url('index/ajax/notify',[],true,true), // 支付结果通知网址,如果不设置则会使用配置里的默认地址 |
180 | - 'trade_type' => 'JSAPI', // 请对应换成你的支付方式对应的值类型 | ||
181 | 'openid' => Db::name('third')->where('user_id',$this->auth->id)->value('openid'), | 181 | 'openid' => Db::name('third')->where('user_id',$this->auth->id)->value('openid'), |
182 | ]; | 182 | ]; |
183 | $order = new Order($attributes); | 183 | $order = new Order($attributes); |
@@ -461,12 +461,12 @@ class Store extends Api | @@ -461,12 +461,12 @@ class Store extends Api | ||
461 | $payment = $app->payment; | 461 | $payment = $app->payment; |
462 | // 获取支付参数 | 462 | // 获取支付参数 |
463 | $attributes = [ | 463 | $attributes = [ |
464 | + 'trade_type' => 'JSAPI', // 请对应换成你的支付方式对应的值类型 | ||
464 | 'body' => '发布招募合伙人', | 465 | 'body' => '发布招募合伙人', |
465 | 'out_trade_no' => $order_sn, | 466 | 'out_trade_no' => $order_sn, |
466 | 'total_fee' => 1, // $param['money'] * 100 | 467 | 'total_fee' => 1, // $param['money'] * 100 |
467 | 'spbill_create_ip' => request()->ip(), // 可选,如不传该参数,SDK 将会自动获取相应 IP 地址 | 468 | 'spbill_create_ip' => request()->ip(), // 可选,如不传该参数,SDK 将会自动获取相应 IP 地址 |
468 | 'notify_url' => url('index/ajax/notify',[],true,true), // 支付结果通知网址,如果不设置则会使用配置里的默认地址 | 469 | 'notify_url' => url('index/ajax/notify',[],true,true), // 支付结果通知网址,如果不设置则会使用配置里的默认地址 |
469 | - 'trade_type' => 'JSAPI', // 请对应换成你的支付方式对应的值类型 | ||
470 | 'openid' => Db::name('third')->where('user_id',$this->auth->id)->value('openid'), | 470 | 'openid' => Db::name('third')->where('user_id',$this->auth->id)->value('openid'), |
471 | ]; | 471 | ]; |
472 | $order = new Order($attributes); | 472 | $order = new Order($attributes); |
-
请 注册 或 登录 后发表评论