作者 刘朕
1 个管道 的构建 通过 耗费 0 秒

合并分支 'liuzhen' 到 'master'

支付调试



查看合并请求 !30
@@ -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);