作者 郭文星

123

... ... @@ -937,7 +937,7 @@ class Car extends Base
"order_no"=>getOrderSn(),
"price"=>$price,
"reservation_time"=>$reservation_time,
"is_pay"=>"1",//未支付
"is_pay"=>1,//未支付
"route_id"=>$route_id,
"user_id"=>$this->auth->id,
"phone"=>$phone,
... ... @@ -1044,7 +1044,7 @@ class Car extends Base
"is_qrcode"=>$is_qrcode,
"specificaddress_id"=>$specificaddress_id,
"reservation_time"=>$reservation_time,
"is_pay"=>"1",//未支付
"is_pay"=>1,//未支付
"route_id"=>$route_id,
"driver_id"=>$driver['id'],
"user_id"=>$this->auth->id,
... ... @@ -1203,7 +1203,8 @@ class Car extends Base
public function orderpayagain(){
$order_no=$this->request->param("order_no");
$order=Db::name("order")->where("order_no",$order_no)->find();
if(!$order){
if(!$order){
$this->error("无此订单");
}
if($order['is_pay']!=2){
... ... @@ -1213,7 +1214,7 @@ class Car extends Base
"order_no"=>getOrderSn(),
];
$res=Db::name("order")->where("id",$order['id'])->update($data);
$order=Db::name("order")->where("order_no",$order_no)->find();
$order=Db::name("order")->where("id",$order['id'])->find();
$userinfo = Db::name('user')
->where(['id' => $this->auth->id])
->field('id,wx_xcx_openid')
... ... @@ -1227,7 +1228,7 @@ class Car extends Base
'method' => 'miniapp',
'openid' => $userinfo['wx_xcx_openid'],
];
$f = \addons\epay\library\Service::submitOrder($params);
$f = \addons\epay\library\Service::submitOrder($params);
$this->success("请求成功",$f);
}
}
\ No newline at end of file
... ...