作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

个人中心接口设计

@@ -193,7 +193,7 @@ class IndexController extends RestBaseController @@ -193,7 +193,7 @@ class IndexController extends RestBaseController
193 } 193 }
194 Db::name('contact_order')->insert(['create_time' => time(), 'user_id' => $userId, 'post_id' => $param['id'], 'order_sn' => $order_sn, 'money' => $post['contact_price']]); 194 Db::name('contact_order')->insert(['create_time' => time(), 'user_id' => $userId, 'post_id' => $param['id'], 'order_sn' => $order_sn, 'money' => $post['contact_price']]);
195 $pay = new WeixinPay(); 195 $pay = new WeixinPay();
196 - $this->success('唤起支付', $pay->pay($openid, $order_sn, '获取联系方式', $post['contact_price']*100, url('portal/pay/notify'))); 196 + $this->success('唤起支付', $pay->pay($openid, $order_sn, '获取联系方式', $post['contact_price']*100, url('app/portal/pay/notify')));
197 } 197 }
198 198
199 /** 199 /**
@@ -114,7 +114,7 @@ class PayController extends HomeBaseController @@ -114,7 +114,7 @@ class PayController extends HomeBaseController
114 114
115 public function test11(){ 115 public function test11(){
116 var_dump(cache('successful')); 116 var_dump(cache('successful'));
117 - var_dump(cache('nnn')); 117 + var_dump(cache('nnn'));
118 } 118 }
119 119
120 /** 120 /**