1、合作商余额查询

2、分油账户司机可用额度
This commit is contained in:
2026-10-20 23:21:10 +08:00
parent 45452c1799
commit fafd3e2c16
134 changed files with 2344 additions and 352 deletions
+20
View File
@@ -200,6 +200,26 @@ function runtime_root_path(): string
return dirname(runtime_path()) . DIRECTORY_SEPARATOR;
}
/**
* 上游对接日志(storelog)的统一目录
*
* ⚠️ 不能用 runtime_path():多应用模式下 think-multi-app 会把运行时目录改写成
* runtime/{应用名}/(vendor/topthink/think-multi-app/src/MultiApp.php::setApp 里的
* setRuntimePath),于是同一条业务链路的日志会散到三个地方:
* CLI 常驻队列进程 runtime/storelog/
* api 入口(回调接收) runtime/api/storelog/
* store 后台操作 runtime/store/storelog/
* 排查时极易找错目录(比如回调明明收到了,却在 CLI 那个目录里怎么都 grep 不到)。
* 这里按项目根目录固定,所有进程写同一处。
*
* 注:改动只影响新日志,历史日志仍留在原来的三个目录里。
* @return string 带结尾分隔符的绝对路径
*/
function store_log_path(): string
{
return app()->getRootPath() . 'runtime' . DIRECTORY_SEPARATOR . 'storelog' . DIRECTORY_SEPARATOR;
}
/**
* 写入日志 (使用tp自带驱动记录到runtime目录中)
* @param mixed $value