From 8c4a899b4346398659ea5e4c5be157e3c15ae2a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=B3=E6=B8=85=E7=88=BD?= Date: Tue, 6 May 2025 17:47:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=81=E5=9F=9F=E6=93=8D=E7=9B=98=E6=89=8B?= =?UTF-8?q?=20-=20=E4=BF=AE=E6=94=B9=E6=A8=A1=E5=9D=97=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=99=A8=E5=85=A8=E9=83=A8=E7=BB=A7=E6=89=BF=E5=9F=BA=E7=B1=BB?= =?UTF-8?q?=E4=BB=A5=E5=AE=9E=E7=8E=B0=E6=9B=B4=E5=8A=A0=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E7=9A=84=E6=93=8D=E4=BD=9C=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/application/cunkebao/config/route.php | 1 + .../application/cunkebao/controller/Plan.php | 21 +++++++++++++++++++ .../GetAddResultedDevicesController.php | 4 ++-- .../device/GetDeviceListV1Controller.php | 3 ++- .../device/PostAddDeviceV1Controller.php | 3 ++- .../UpdateDeviceTaskConfigV1Controller.php | 14 ++++++------- 6 files changed, 35 insertions(+), 11 deletions(-) create mode 100644 Server/application/cunkebao/controller/Plan.php diff --git a/Server/application/cunkebao/config/route.php b/Server/application/cunkebao/config/route.php index 744fdba2..cc691213 100644 --- a/Server/application/cunkebao/config/route.php +++ b/Server/application/cunkebao/config/route.php @@ -35,6 +35,7 @@ Route::group('v1/', function () { // 获客场景相关 Route::group('plan/scenes', function () { Route::get('', 'app\cunkebao\controller\Scene@index'); // 获取场景列表 + Route::post('create', 'app\cunkebao\controller\Plan@index'); // 获取场景列表 }); // 流量标签相关 diff --git a/Server/application/cunkebao/controller/Plan.php b/Server/application/cunkebao/controller/Plan.php new file mode 100644 index 00000000..42de7dfd --- /dev/null +++ b/Server/application/cunkebao/controller/Plan.php @@ -0,0 +1,21 @@ +field(['d.id', 'd.imei', 'd.memo', 'l.wechatId', 'd.alive','wa.nickname','wa.alias', '0 totalFriend']) + ->field(['d.id', 'd.imei', 'd.memo', 'l.wechatId', 'd.alive', 'wa.nickname', 'wa.alias', '0 totalFriend']) ->leftJoin('device_wechat_login l', 'd.id = l.deviceId') ->leftJoin('wechat_account wa', 'l.wechatId = wa.wechatId') ->order('d.id desc'); diff --git a/Server/application/cunkebao/controller/device/PostAddDeviceV1Controller.php b/Server/application/cunkebao/controller/device/PostAddDeviceV1Controller.php index f8232194..cc44d91e 100644 --- a/Server/application/cunkebao/controller/device/PostAddDeviceV1Controller.php +++ b/Server/application/cunkebao/controller/device/PostAddDeviceV1Controller.php @@ -1,4 +1,5 @@ setMethod() + // $curl->setMethod() } /** diff --git a/Server/application/cunkebao/controller/device/UpdateDeviceTaskConfigV1Controller.php b/Server/application/cunkebao/controller/device/UpdateDeviceTaskConfigV1Controller.php index 0b1fb4c7..e1da2e00 100644 --- a/Server/application/cunkebao/controller/device/UpdateDeviceTaskConfigV1Controller.php +++ b/Server/application/cunkebao/controller/device/UpdateDeviceTaskConfigV1Controller.php @@ -1,13 +1,13 @@ request->post(); $content = null; - if (isset($data['autoAddFriend']))/**/$content = $data['autoAddFriend'] ? '开启自动添加好友' : '关闭自动添加好友'; - if (isset($data['autoReply']))/* */$content = $data['autoReply'] ? '开启自动回复' : '关闭自动回复'; - if (isset($data['momentsSync']))/* */$content = $data['momentsSync'] ? '开启朋友圈同步' : '关闭朋友圈同步'; - if (isset($data['aiChat']))/* */$content = $data['aiChat'] ? '开启AI会话' : '关闭AI会话'; + if (isset($data['autoAddFriend']))/**/ $content = $data['autoAddFriend'] ? '开启自动添加好友' : '关闭自动添加好友'; + if (isset($data['autoReply']))/* */ $content = $data['autoReply'] ? '开启自动回复' : '关闭自动回复'; + if (isset($data['momentsSync']))/* */ $content = $data['momentsSync'] ? '开启朋友圈同步' : '关闭朋友圈同步'; + if (isset($data['aiChat']))/* */ $content = $data['aiChat'] ? '开启AI会话' : '关闭AI会话'; if (empty($content)) { throw new \Exception('参数错误', '400');