底层微信接口免密登录
This commit is contained in:
@@ -7,7 +7,6 @@ use think\facade\Log;
|
||||
use think\Queue;
|
||||
use think\facade\Config;
|
||||
use app\api\controller\AccountController;
|
||||
use app\common\service\AuthService;
|
||||
|
||||
class AccountListJob
|
||||
{
|
||||
@@ -73,15 +72,8 @@ class AccountListJob
|
||||
$request = request();
|
||||
$request->withGet($params);
|
||||
|
||||
// 获取系统授权信息
|
||||
$authorization = AuthService::getSystemAuthorization();
|
||||
if (empty($authorization)) {
|
||||
Log::error('获取系统授权信息失败');
|
||||
return false;
|
||||
}
|
||||
|
||||
// 调用公司账号列表获取方法
|
||||
$result = $accountController->getlist($pageIndex,$pageSize,$authorization);
|
||||
$result = $accountController->getlist($pageIndex,$pageSize,true);
|
||||
$response = json_decode($result,true);
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ use think\facade\Log;
|
||||
use think\Queue;
|
||||
use think\facade\Config;
|
||||
use app\api\controller\DeviceController;
|
||||
use app\common\service\AuthService;
|
||||
|
||||
class DeviceListJob
|
||||
{
|
||||
@@ -73,15 +72,10 @@ class DeviceListJob
|
||||
$request = request();
|
||||
$request->withGet($params);
|
||||
|
||||
// 获取系统授权信息
|
||||
$authorization = AuthService::getSystemAuthorization();
|
||||
if (empty($authorization)) {
|
||||
Log::error('获取系统授权信息失败');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// 调用设备列表获取方法
|
||||
$result = $deviceController->getlist($pageIndex,$pageSize,$authorization,true);
|
||||
$result = $deviceController->getlist($pageIndex,$pageSize,true);
|
||||
$response = json_decode($result,true);
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ use think\facade\Log;
|
||||
use think\Queue;
|
||||
use think\facade\Config;
|
||||
use app\api\controller\FriendTaskController;
|
||||
use app\common\service\AuthService;
|
||||
|
||||
class FriendTaskJob
|
||||
{
|
||||
@@ -72,16 +71,9 @@ class FriendTaskJob
|
||||
// 设置请求信息
|
||||
$request = request();
|
||||
$request->withGet($params);
|
||||
|
||||
// 获取系统授权信息
|
||||
$authorization = AuthService::getSystemAuthorization();
|
||||
if (empty($authorization)) {
|
||||
Log::error('获取系统授权信息失败');
|
||||
return false;
|
||||
}
|
||||
|
||||
// 调用添加好友任务获取方法
|
||||
$result = $friendTaskController->getlist($pageIndex,$pageSize,$authorization,true);
|
||||
$result = $friendTaskController->getlist($pageIndex,$pageSize,true);
|
||||
$response = json_decode($result,true);
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ use think\facade\Log;
|
||||
use think\Queue;
|
||||
use think\facade\Config;
|
||||
use app\api\controller\MessageController;
|
||||
use app\common\service\AuthService;
|
||||
|
||||
class MessageChatroomListJob
|
||||
{
|
||||
@@ -73,15 +72,8 @@ class MessageChatroomListJob
|
||||
$request = request();
|
||||
$request->withGet($params);
|
||||
|
||||
// 获取系统授权信息
|
||||
$authorization = AuthService::getSystemAuthorization();
|
||||
if (empty($authorization)) {
|
||||
Log::error('获取系统授权信息失败');
|
||||
return false;
|
||||
}
|
||||
|
||||
// 调用添加好友任务获取方法
|
||||
$result = $messageController->getChatroomList($pageIndex,$pageSize,$authorization,true);
|
||||
$result = $messageController->getChatroomList($pageIndex,$pageSize,true);
|
||||
$response = json_decode($result,true);
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ use think\facade\Log;
|
||||
use think\Queue;
|
||||
use think\facade\Config;
|
||||
use app\api\controller\MessageController;
|
||||
use app\common\service\AuthService;
|
||||
|
||||
class MessageFriendsListJob
|
||||
{
|
||||
@@ -73,16 +72,10 @@ class MessageFriendsListJob
|
||||
$request = request();
|
||||
$request->withGet($params);
|
||||
|
||||
// 获取系统授权信息
|
||||
$authorization = AuthService::getSystemAuthorization();
|
||||
if (empty($authorization)) {
|
||||
Log::error('获取系统授权信息失败');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// 调用添加好友任务获取方法
|
||||
$result = $messageController->getFriendsList($pageIndex,$pageSize,$authorization,true);
|
||||
$result = $messageController->getFriendsList($pageIndex,$pageSize,true);
|
||||
$response = json_decode($result,true);
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ use think\facade\Log;
|
||||
use think\Queue;
|
||||
use think\facade\Config;
|
||||
use app\api\controller\WechatChatroomController;
|
||||
use app\common\service\AuthService;
|
||||
|
||||
class WechatChatroomJob
|
||||
{
|
||||
@@ -73,15 +72,8 @@ class WechatChatroomJob
|
||||
$request = request();
|
||||
$request->withGet($params);
|
||||
|
||||
// 获取系统授权信息
|
||||
$authorization = AuthService::getSystemAuthorization();
|
||||
if (empty($authorization)) {
|
||||
Log::error('获取系统授权信息失败');
|
||||
return false;
|
||||
}
|
||||
|
||||
// 调用设备列表获取方法
|
||||
$result = $wechatChatroomController->getlist($pageIndex,$pageSize,$authorization,true);
|
||||
$result = $wechatChatroomController->getlist($pageIndex,$pageSize,true);
|
||||
|
||||
$response = json_decode($result,true);
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ use think\facade\Log;
|
||||
use think\Queue;
|
||||
use think\facade\Config;
|
||||
use app\api\controller\WechatFriendController;
|
||||
use app\common\service\AuthService;
|
||||
|
||||
class WechatFriendJob
|
||||
{
|
||||
@@ -75,15 +74,9 @@ class WechatFriendJob
|
||||
$request = request();
|
||||
$request->withGet($params);
|
||||
|
||||
// 获取系统授权信息
|
||||
$authorization = AuthService::getSystemAuthorization();
|
||||
if (empty($authorization)) {
|
||||
Log::error('获取系统授权信息失败');
|
||||
return false;
|
||||
}
|
||||
|
||||
// 调用设备列表获取方法
|
||||
$result = $wechatFriendController->getlist($pageIndex,$pageSize,$preFriendId,$authorization,true);
|
||||
$result = $wechatFriendController->getlist($pageIndex,$pageSize,$preFriendId,true);
|
||||
$response = json_decode($result,true);
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ use think\facade\Log;
|
||||
use think\Queue;
|
||||
use think\facade\Config;
|
||||
use app\api\controller\WechatController;
|
||||
use app\common\service\AuthService;
|
||||
|
||||
class WechatListJob
|
||||
{
|
||||
@@ -73,15 +72,9 @@ class WechatListJob
|
||||
$request = request();
|
||||
$request->withGet($params);
|
||||
|
||||
// 获取系统授权信息
|
||||
$authorization = AuthService::getSystemAuthorization();
|
||||
if (empty($authorization)) {
|
||||
Log::error('获取系统授权信息失败');
|
||||
return false;
|
||||
}
|
||||
|
||||
// 调用设备列表获取方法
|
||||
$result = $wechatController->getlist($pageIndex,$pageSize,$authorization,true);
|
||||
$result = $wechatController->getlist($pageIndex,$pageSize,true);
|
||||
$response = json_decode($result,true);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user