...
|
...
|
@@ -30,7 +30,7 @@ class PayRenewController extends HomeBaseController |
|
|
* 微信支付
|
|
|
*/
|
|
|
public function index(){
|
|
|
$order_renew_id = $this->request->param('order_renew_id');
|
|
|
$order_renew_id = $this->request->param('id');
|
|
|
$data = Db::name('order_renew')->where('id',$order_renew_id)->find();
|
|
|
if(empty($data)){
|
|
|
$this->error('未查询到该订单!','');
|
...
|
...
|
@@ -39,7 +39,7 @@ class PayRenewController extends HomeBaseController |
|
|
'trade_type' => 'JSAPI',
|
|
|
'body' => '橙象保单-续费',
|
|
|
'detail' => '以客户为中心 以奋斗者文本',
|
|
|
'out_trade_no' => cmf_get_order_sn(),
|
|
|
'out_trade_no' => $data['num'],
|
|
|
'total_fee' => $data['total'],//1, // 单位:分
|
|
|
'notify_url' => url('portal/pay_renew/notify','','',true), // 支付结果通知网址,如果不设置则会使用配置里的默认地址
|
|
|
'openid' => cmf_get_current_user_openid(), // trade_type=JSAPI,此参数必传,用户在商户appid下的唯一标识,
|
...
|
...
|
|