Commit d930accc authored by 孙磊's avatar 孙磊

门店服务类目传值类型判断

Signed-off-by: 孙磊's avatarsunlei <sunlei@romens.cn>
parent aedcb313
......@@ -191,7 +191,12 @@ class BranchController extends BaseController
$code = $param['CODE'];
$ShopBranchService->BranchServiceDel($code);
$BST = $param['BRANCH_SERVICE_TYPE'];
$BST_arr = explode(',',$BST);
//判断门店服务类目类型
if(is_string($BST)){
$BST_arr = explode(',',$BST);
}else{
$BST_arr = $BST;
}
//添加门店服务类目
foreach($BST_arr as $k => $v){
$ShopBranchService = new ShopBranchService();
......@@ -358,7 +363,12 @@ class BranchController extends BaseController
$ShopBranchService->scenario = 'create';//创建的场景
//删除门店原有服务类目
$ShopBranchService->BranchServiceDel($CODE);
$BST_arr = explode(',',$BRANCH_SERVICE_TYPE);
//判断门店服务类目类型
if(is_string($BRANCH_SERVICE_TYPE)){
$BST_arr = explode(',',$BRANCH_SERVICE_TYPE);
}else{
$BST_arr = $BRANCH_SERVICE_TYPE;
}
//添加门店服务类目
foreach($BST_arr as $k => $v){
$ShopBranchService = new ShopBranchService();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment