|
|
@@ -38,7 +38,7 @@ class Order extends Base |
|
|
|
*/ |
|
|
|
protected $frequently = ['getorders']; |
|
|
|
|
|
|
|
protected $noNeedLogin = ['count','create']; |
|
|
|
protected $noNeedLogin = ['count','create','submit']; |
|
|
|
|
|
|
|
/** |
|
|
|
* 创建订单 |
|
|
@@ -147,7 +147,7 @@ class Order extends Base |
|
|
|
} |
|
|
|
|
|
|
|
$orderModel = new \addons\unishop\model\Order(); |
|
|
|
$result = $orderModel->createOrder($this->auth->id, $data); |
|
|
|
$result = $orderModel->createOrder(1, $data); |
|
|
|
|
|
|
|
Db::commit(); |
|
|
|
|
|
|
|