...
|
...
|
@@ -532,6 +532,7 @@ class OrderController extends HomeBaseController{ |
|
|
*/
|
|
|
public function pay($order_no){
|
|
|
$order=Db::name('order')->where(['order_no'=>$order_no,'state'=>2])->find();
|
|
|
|
|
|
$openId=Db::name('users')->where('id',$order['users_id'])->find()['open_id'];
|
|
|
dump($openId);
|
|
|
$body='支付';
|
...
|
...
|
@@ -578,7 +579,7 @@ class OrderController extends HomeBaseController{ |
|
|
$insert['eq_name']='';
|
|
|
$insert['start_time']=time();
|
|
|
$insert['price']=$fee;
|
|
|
$insert['state']=1;
|
|
|
$insert['state']=2;
|
|
|
$insert['type']=2;
|
|
|
$insert['users_id']=$user_id;
|
|
|
$result=\db('order')->insert($insert);
|
...
|
...
|
|