25 lines
461 B
PHP
25 lines
461 B
PHP
<?php
|
|
|
|
namespace extend\chat\model;
|
|
|
|
use ba\Exception;
|
|
use ba\Random;
|
|
use support\Redis;
|
|
use support\think\Db;
|
|
use GatewayWorker\Lib\Gateway;
|
|
use support\Log;
|
|
use think\Model;
|
|
|
|
/**
|
|
* 管理端小程序
|
|
*/
|
|
class OnbocChat extends Base
|
|
{
|
|
// 初始化
|
|
public static function init(string $client_id, array $message):void
|
|
{
|
|
Base::init($client_id, $message);
|
|
Gateway::sendToClient($client_id, json_encode(['msg' => 'success']));
|
|
}
|
|
|
|
} |