## GitHub 同步说明 | 项 | 内容 | |:---|:---| | 仓库 | https://github.com/fnvtk/cunkebao_v3 | | 分支 | develop | | 方向 | 本地 → GitHub(单向 push) | | 是否拉取远程 | 否(未 fetch / pull / merge) | | 是否改本地源文件 | 否(仅 git add/commit,未编辑任何业务/文档正文) | | 远程基准 | origin/develop @2753265e| | 本批工作区变更 | 563 files, +30324 / -7013 lines | ## 一并推送的本地已有 commit(此前未 push) 1.f7a7c56cchore(触客宝): 全量构建部署 kr-kf 生产并通过线上 smoke 2.8801f5fffeat(触客宝): TKB-120 快捷语整组互拷与 AI 五步整理 3.c396ed35docs(触客宝): 0603 已完成项归档并交付 TKB-117-B 超管存储 4.e4ed53bcfix(部署): SSH 主机密钥变更兼容并完成五端全量上线 ## 本 commit 目录统计 | 目录 | 文件数 | 说明 | |:---|---:|:---| | 开发文档/ | 251 | 触客宝 0603~0608 归档、未完成项、五端账号速查 | | Touchkebao/ | 109 | 微信客服 CustomerList、快捷语、AI 获客等 | | Server/ | 108 | BFF/API、TaskCustomerList 等 | | Cunkebao/ | 53 | 存客宝移动端迭代 | | SuperAdmin/ | 24 | 超管后台 | | 官网/ | 7 | 官网小改 | | 其他 | 21 | .cursor、Moncter、docker-compose 等 | ## 重点文件(本地为准) - Touchkebao/.../CustomerList/index.tsx(微信客户列表) - 开发文档/1、需求/修改/触客宝_进行中_20260608.md - 开发文档/1、需求/修改/未完成项与跨仓验收汇总.md - 开发文档/10、项目管理/线上五端网址与账号密码速查.md - 开发文档/10、项目管理/已完成/触客宝_0607* 归档 - 开发文档/5、接口/02-存客宝对接/触客宝PC接口对接索引.md ## 刻意未上传 - node_modules/、.DS_Store、.smart-env/ - .开发文档_nested_git_backup/ - **/__pycache__/ ## 验收 - 本提交说明: https://github.com/fnvtk/cunkebao_v3/commit/HEAD - 分支: https://github.com/fnvtk/cunkebao_v3/tree/develop Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
685 B
PHP
33 lines
685 B
PHP
<?php
|
|
|
|
namespace app\api\controller;
|
|
|
|
use think\Controller;
|
|
use think\facade\Env;
|
|
use app\common\service\AuthService;
|
|
|
|
class BaseController extends Controller
|
|
{
|
|
/**
|
|
* 令牌
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $token = '';
|
|
protected $baseUrl;
|
|
protected $authorization = '';
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->baseUrl = Env::get('api.wechat_url');
|
|
$this->authorization = AuthService::getSystemAuthorization();
|
|
}
|
|
|
|
/** 服务端内部调用(转移执行等)注入 S2 token */
|
|
public function setAuthorization(string $token): void
|
|
{
|
|
$this->authorization = $token;
|
|
}
|
|
}
|