私域操盘手 - 账号详情/账号概览 对接
This commit is contained in:
@@ -23,7 +23,7 @@ Route::group('v1/', function () {
|
||||
// 设备微信相关
|
||||
Route::group('device/wechats', function () {
|
||||
Route::get('', 'app\cunkebao\controller\wechat\GetWechatsOnDevicesV1Controller@index'); // 获取在线微信账号列表
|
||||
Route::get(':id', 'app\cunkebao\controller\wechat\GetWechatOnDeviceSummarizeV1Controller@index'); // 获取微信号详情
|
||||
Route::get(':id/summary', 'app\cunkebao\controller\wechat\GetWechatOnDeviceSummarizeV1Controller@index'); // 获取微信号详情
|
||||
|
||||
Route::get('friends', 'app\cunkebao\controller\DeviceWechat@getFriends'); // 获取微信好友列表
|
||||
Route::get('count', 'app\cunkebao\controller\DeviceWechat@count'); // 获取在线微信账号数量
|
||||
|
||||
@@ -70,13 +70,13 @@ class GetWechatOnDeviceSummarizeV1Controller extends BaseController
|
||||
return [
|
||||
[
|
||||
'id' => 1,
|
||||
'type' => 'warnnig',
|
||||
'level' => 2,
|
||||
'reason' => '频繁添加好友',
|
||||
'date' => date('Y-m-d H:i:s', strtotime('-1 day')),
|
||||
],
|
||||
[
|
||||
'id' => 2,
|
||||
'type' => 'error',
|
||||
'level' => 3,
|
||||
'reason' => '营销内容违规',
|
||||
'date' => date('Y-m-d H:i:s', strtotime('-1 day')),
|
||||
],
|
||||
@@ -228,7 +228,7 @@ class GetWechatOnDeviceSummarizeV1Controller extends BaseController
|
||||
protected function getStatistics(string $wechatId, array $accountWeight): array
|
||||
{
|
||||
return [
|
||||
'addedCount' => $this->getTodayNewFriendCount($wechatId),
|
||||
'todayAdded' => $this->getTodayNewFriendCount($wechatId),
|
||||
'addLimit' => $this->_calAllowedFriends($accountWeight['scope'])
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user