This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/task/common.php

21 lines
373 B
PHP
Raw Normal View History

2020-04-25 22:20:29 +08:00
<?php
// 应用公共函数库文件
/**
* 记录日志
* @param string $class
* @param string $method
* @param array $params
* @return bool
*/
function dologs($class, $method, $params = [])
{
$value = "behavior {$class} --{$method}";
foreach ($params as $key => $val) {
$value .= " --{$key} {$val}";
}
log_write($value);
return true;
}