feat : order list
This commit is contained in:
@@ -148,7 +148,7 @@ class SpuService extends BaseService
|
||||
$insertModel->city_id = $this->cityId;
|
||||
$insertModel->cycle_id = $cycleInfo->id;
|
||||
$insertModel->kitchen_id = $this->request->input('kitchen_id');
|
||||
$insertModel->chef_id = $this->request->input('chef_id');
|
||||
// $insertModel->chef_id = $this->request->input('chef_id');
|
||||
$insertModel->title = $title;
|
||||
$insertModel->sub_title = $this->request->input('sub_title','');
|
||||
$insertModel->caterer_id = $this->request->input('caterer_id');
|
||||
@@ -192,11 +192,11 @@ class SpuService extends BaseService
|
||||
|
||||
if ($kitchenInfo->status == SiteCode::KITCHEN_DISABLE) throw new ErrException('该厨房已禁用');
|
||||
|
||||
$chefId = (int)$this->request->input('chef_id');
|
||||
$chefInfo = $this->chefModel->getInfoById($chefId);
|
||||
$chefUserInfo = $this->adminUserModel->getAdminInfoById($chefInfo->user_id);
|
||||
|
||||
if ($chefUserInfo->status == UserCode::DISABLE) throw new ErrException('该厨师已禁用');
|
||||
// $chefId = (int)$this->request->input('chef_id');
|
||||
// $chefInfo = $this->chefModel->getInfoById($chefId);
|
||||
// $chefUserInfo = $this->adminUserModel->getAdminInfoById($chefInfo->user_id);
|
||||
//
|
||||
// if ($chefUserInfo->status == UserCode::DISABLE) throw new ErrException('该厨师已禁用');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -213,7 +213,7 @@ class SpuService extends BaseService
|
||||
$this->checkInfo();
|
||||
|
||||
$info->kitchen_id = $this->request->input('kitchen_id');
|
||||
$info->chef_id = $this->request->input('chef_id');
|
||||
// $info->chef_id = $this->request->input('chef_id');
|
||||
$info->title = $this->request->input('title');
|
||||
$info->caterer_id = $this->request->input('caterer_id');
|
||||
$info->sub_title = $this->request->input('sub_title','');
|
||||
|
||||
Reference in New Issue
Block a user