...
|
...
|
@@ -9,6 +9,7 @@ |
|
|
namespace app\index\controller;
|
|
|
|
|
|
|
|
|
use app\common\controller\Frontend;
|
|
|
use app\common\controller\HomeBase;
|
|
|
use app\index\model\Address;
|
|
|
use app\index\model\Area;
|
...
|
...
|
@@ -17,8 +18,11 @@ use app\index\model\OrderInfo; |
|
|
use app\index\model\Store;
|
|
|
use think\Db;
|
|
|
|
|
|
class Order extends HomeBase
|
|
|
class Order extends Frontend
|
|
|
{
|
|
|
protected $noNeedLogin = [''];
|
|
|
protected $noNeedRight = ['*'];
|
|
|
|
|
|
/**
|
|
|
* 确认订单
|
|
|
* @return mixed
|
...
|
...
|
@@ -27,7 +31,7 @@ class Order extends HomeBase |
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
public function confirm(){
|
|
|
$user_id = $this->getUserId();
|
|
|
$user_id = $this->auth->id;
|
|
|
// $car_ids = $this->request->param('car_ids');
|
|
|
$data = $this->request->param('data');
|
|
|
$province_id = $this->request->param('province_id',0,'intval');
|
...
|
...
|
@@ -132,7 +136,7 @@ class Order extends HomeBase |
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
public function confirm_ajax(){
|
|
|
$user_id = $this->getUserId();
|
|
|
$user_id = $this->auth->id;
|
|
|
// $car_ids = $this->request->param('car_ids');
|
|
|
$data = $this->request->param('data');
|
|
|
$province_id = $this->request->param('province_id',0,'intval');
|
...
|
...
|
@@ -218,7 +222,7 @@ class Order extends HomeBase |
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
public function create_order(){
|
|
|
$user_id = $this->getUserId();
|
|
|
$user_id = $this->auth->id;
|
|
|
$data = $this->request->param('data');
|
|
|
$express = $this->request->param('express',0,'intval');
|
|
|
$address_id = $this->request->param('address_id',0,'intval');
|
...
|
...
|
@@ -380,7 +384,7 @@ class Order extends HomeBase |
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
public function pay(){
|
|
|
$user_id = $this->getUserId();
|
|
|
$user_id = $this->auth->id;
|
|
|
$order_id = $this->request->param('order_id',0,'intval');
|
|
|
$order_detail_id = $this->request->param('order_detail_id',0,'intval');
|
|
|
if(empty($order_id) && empty($order_detail_id)){
|
...
|
...
|
@@ -436,7 +440,7 @@ class Order extends HomeBase |
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
public function order_pay(){
|
|
|
$user_id = $this->getUserId();
|
|
|
$user_id = $this->auth->id;
|
|
|
$order_id = $this->request->param('order_id',0,'intval');
|
|
|
$order_detail_id = $this->request->param('order_detail_id',0,'intval');
|
|
|
if(empty($order_id) && empty($order_detail_id)){
|
...
|
...
|
|