Commit de61974e authored by 刘小敏's avatar 刘小敏

fix(helper): 修复custom_log调用参数并添加调试日志

parent 1eba0453
......@@ -625,7 +625,7 @@ if (!function_exists('format_log_error')) {
$logInfo = implode(PHP_EOL, $logInfo) . PHP_EOL;
\think\Log::error($logInfo);
custom_log($logInfo, 'gen_ai');
custom_log($logInfo, 0, 'error');
}
}
......
......@@ -24,9 +24,12 @@ class OrderPaid extends BaseJob
public function paid(Job $job, $data)
{
try {
custom_log(json_encode($data) , 0 , 'debug_0707');
$order = $data['order'];
$user = $data['user'];
$order = Order::with('items')->where('id', $order['id'])->find();
$user = User::get($user['id']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment