代码优化
This commit is contained in:
@@ -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 {
|
||||
// 更新数据
|
||||
|
||||
Reference in New Issue
Block a user