43 lines
1.6 KiB
PHP
Executable File
43 lines
1.6 KiB
PHP
Executable File
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
|
// +----------------------------------------------------------------------
|
|
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
|
// | 开源版本可自由商用,可去除界面版权logo
|
|
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
|
// | github下载:https://github.com/likeshop-github/likeadmin
|
|
// | 访问官网:https://www.likeadmin.cn
|
|
// | likeadmin团队 版权所有 拥有最终解释权
|
|
// +----------------------------------------------------------------------
|
|
// | author: likeadminTeam
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
namespace app\common\enum;
|
|
|
|
|
|
/**
|
|
* 管理后台登录终端
|
|
* Class terminalEnum
|
|
* @package app\common\enum
|
|
*/
|
|
class AdminTerminalEnum
|
|
{
|
|
const PC = 1;
|
|
const MOBILE = 2;
|
|
// 企业微信客服桌面软件。与网页端分开保存会话,桌面登录不会顶掉浏览器登录。
|
|
const WECOM_RPA = 7;
|
|
// 8 已被 AI 浏览器(app/mcp/service/ConsoleService::TERMINAL)占用,不要复用。
|
|
// 企业微信客服手机远程控制台。由客服后台服务端代为登录,单独保存会话,
|
|
// 手机登录既不会顶掉桌面软件(7),也不会和网页后台(1)、AI 浏览器(8)互踢。
|
|
const WECOM_RPA_MOBILE = 9;
|
|
|
|
/**
|
|
* 可以调用 /adminapi/desktop/session 换取客服身份的终端。
|
|
*/
|
|
public static function wecomRpaTerminals(): array
|
|
{
|
|
return [self::WECOM_RPA, self::WECOM_RPA_MOBILE];
|
|
}
|
|
}
|