正在显示
1 个修改的文件
包含
6 行增加
和
5 行删除
| @@ -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,7 +1203,8 @@ class Car extends Base | @@ -1203,7 +1203,8 @@ 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 | - if(!$order){ | 1206 | + |
| 1207 | + if(!$order){ | ||
| 1207 | $this->error("无此订单"); | 1208 | $this->error("无此订单"); |
| 1208 | } | 1209 | } |
| 1209 | if($order['is_pay']!=2){ | 1210 | if($order['is_pay']!=2){ |
| @@ -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') |
| @@ -1227,7 +1228,7 @@ class Car extends Base | @@ -1227,7 +1228,7 @@ class Car extends Base | ||
| 1227 | 'method' => 'miniapp', | 1228 | 'method' => 'miniapp', |
| 1228 | 'openid' => $userinfo['wx_xcx_openid'], | 1229 | 'openid' => $userinfo['wx_xcx_openid'], |
| 1229 | ]; | 1230 | ]; |
| 1230 | - $f = \addons\epay\library\Service::submitOrder($params); | 1231 | + $f = \addons\epay\library\Service::submitOrder($params); |
| 1231 | $this->success("请求成功",$f); | 1232 | $this->success("请求成功",$f); |
| 1232 | } | 1233 | } |
| 1233 | } | 1234 | } |
-
请 注册 或 登录 后发表评论