代码优化

This commit is contained in:
wong
2025-07-07 14:54:01 +08:00
parent 2f0fd2e10f
commit 9349fdcbea
3 changed files with 21 additions and 3 deletions

View File

@@ -65,6 +65,10 @@ class PostUpdateAddFriendPlanV1Controller extends Controller
// 其余参数归为sceneConf
$sceneConf = $params;
unset(
$sceneConf['id'],
$sceneConf['apiKey'],
$sceneConf['userId'],
$sceneConf['status'],
$sceneConf['planId'],
$sceneConf['name'],
$sceneConf['sceneId'],
@@ -72,10 +76,14 @@ class PostUpdateAddFriendPlanV1Controller extends Controller
$sceneConf['scenarioTags'],
$sceneConf['customTags'],
$sceneConf['device'],
$sceneConf['orderTableFileName'],
$sceneConf['userInfo'],
$sceneConf['textUrl'],
$sceneConf['remarkType'],
$sceneConf['greeting'],
$sceneConf['addFriendInterval'],
$sceneConf['startTime'],
$sceneConf['orderTableFile'],
$sceneConf['endTime']
);
@@ -90,6 +98,7 @@ class PostUpdateAddFriendPlanV1Controller extends Controller
'updateTime'=> time(),
];
try {
// 更新数据