作者 郭文星

123

@@ -937,7 +937,7 @@ class Car extends Base @@ -937,7 +937,7 @@ class Car extends Base
937 "order_no"=>getOrderSn(), 937 "order_no"=>getOrderSn(),
938 "price"=>$price, 938 "price"=>$price,
939 "reservation_time"=>$reservation_time, 939 "reservation_time"=>$reservation_time,
940 - "is_pay"=>"1",//未支付 940 + "is_pay"=>1,//未支付
941 "route_id"=>$route_id, 941 "route_id"=>$route_id,
942 "user_id"=>$this->auth->id, 942 "user_id"=>$this->auth->id,
943 "phone"=>$phone, 943 "phone"=>$phone,
@@ -1044,7 +1044,7 @@ class Car extends Base @@ -1044,7 +1044,7 @@ class Car extends Base
1044 "is_qrcode"=>$is_qrcode, 1044 "is_qrcode"=>$is_qrcode,
1045 "specificaddress_id"=>$specificaddress_id, 1045 "specificaddress_id"=>$specificaddress_id,
1046 "reservation_time"=>$reservation_time, 1046 "reservation_time"=>$reservation_time,
1047 - "is_pay"=>"1",//未支付 1047 + "is_pay"=>1,//未支付
1048 "route_id"=>$route_id, 1048 "route_id"=>$route_id,
1049 "driver_id"=>$driver['id'], 1049 "driver_id"=>$driver['id'],
1050 "user_id"=>$this->auth->id, 1050 "user_id"=>$this->auth->id,
@@ -1203,6 +1203,7 @@ class Car extends Base @@ -1203,6 +1203,7 @@ class Car extends Base
1203 public function orderpayagain(){ 1203 public function orderpayagain(){
1204 $order_no=$this->request->param("order_no"); 1204 $order_no=$this->request->param("order_no");
1205 $order=Db::name("order")->where("order_no",$order_no)->find(); 1205 $order=Db::name("order")->where("order_no",$order_no)->find();
  1206 +
1206 if(!$order){ 1207 if(!$order){
1207 $this->error("无此订单"); 1208 $this->error("无此订单");
1208 } 1209 }
@@ -1213,7 +1214,7 @@ class Car extends Base @@ -1213,7 +1214,7 @@ class Car extends Base
1213 "order_no"=>getOrderSn(), 1214 "order_no"=>getOrderSn(),
1214 ]; 1215 ];
1215 $res=Db::name("order")->where("id",$order['id'])->update($data); 1216 $res=Db::name("order")->where("id",$order['id'])->update($data);
1216 - $order=Db::name("order")->where("order_no",$order_no)->find(); 1217 + $order=Db::name("order")->where("id",$order['id'])->find();
1217 $userinfo = Db::name('user') 1218 $userinfo = Db::name('user')
1218 ->where(['id' => $this->auth->id]) 1219 ->where(['id' => $this->auth->id])
1219 ->field('id,wx_xcx_openid') 1220 ->field('id,wx_xcx_openid')