全局配置服务功能提交
This commit is contained in:
@@ -287,6 +287,13 @@ class GetAddFriendPlanDetailV1Controller extends Controller
|
||||
$newData['messagePlans'] = $msgConf;
|
||||
$newData = array_merge($newData, $sceneConf, $reqConf, $tagConf, $plan);
|
||||
|
||||
// 确保 planType 有默认值(0=全局,1=独立,默认1)
|
||||
if (!isset($newData['planType'])) {
|
||||
$newData['planType'] = 1;
|
||||
} else {
|
||||
$newData['planType'] = intval($newData['planType']);
|
||||
}
|
||||
|
||||
// 移除不需要的字段
|
||||
unset(
|
||||
$newData['sceneConf'],
|
||||
|
||||
Reference in New Issue
Block a user