|
|
@@ -529,7 +529,11 @@ class OrderController extends BaseController
|
|
|
//订单列表 ssh 2019.12.12
|
|
|
public function actionList()
|
|
|
{
|
|
|
- $where = ['userId' => $this->userId];
|
|
|
+ $userId = $this->userId;
|
|
|
+ if (empty($userId)) {
|
|
|
+ util::success(['list' => []]);
|
|
|
+ }
|
|
|
+ $where = ['userId' => $userId];
|
|
|
$list = OrderService::getOrderList($where);
|
|
|
util::success($list);
|
|
|
}
|