1、合作商余额查询
2、分油账户司机可用额度
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user