fix:warehouse_keeper

This commit is contained in:
LAPTOP-7SGDREK0\shiweijun
2025-02-12 17:28:17 +08:00
parent 0d6694a7c8
commit ac3b9a5692
2 changed files with 3 additions and 3 deletions

View File

@@ -66,9 +66,9 @@ class WarehouseService extends BaseService{
if(!empty($kitchenId))
$info->kitchen_id = $kitchenId;
} else {
throw new ErrException('设置厨师信息失败');
throw new ErrException('设置仓管信息失败');
}
if (!$info->save()) throw new ErrException('设置厨师信息失败');
if (!$info->save()) throw new ErrException('设置仓管信息失败');
return $this->return->success();
}

View File

@@ -535,7 +535,7 @@ GET {{host}}/admin/warehouse_keeper/warehouse_keeper_list?limit=10&query_city_id
content-type: application/json
Authorization: Bearer {{admin_token}}
### 设置仓管数据
### 设置仓管所在厨房
POST {{host}}/admin/warehouse_keeper/setting_warehouse_keeper
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer {{admin_token}}