Commit 68be7144 authored by 王源's avatar 王源 🎧

Merge branch '1.0' into 2.0

parents ff6730c3 09b20b60
...@@ -26,6 +26,7 @@ interface PurchaseTaskServiceInterface ...@@ -26,6 +26,7 @@ interface PurchaseTaskServiceInterface
* 'source_id' => '来源id', * 'source_id' => '来源id',
* 'notice_cancel_reason' => '通知取消原因', * 'notice_cancel_reason' => '通知取消原因',
* 'type' => 1 // 1(订单采购); 2(备货采购); 3(样品采购) * 'type' => 1 // 1(订单采购); 2(备货采购); 3(样品采购)
* 'auth' => Auth::user() // 当前用户
* ] * ]
* @return bool * @return bool
* @throws \Meibuyu\Micro\Exceptions\RpcException * @throws \Meibuyu\Micro\Exceptions\RpcException
......
...@@ -89,6 +89,9 @@ class Log ...@@ -89,6 +89,9 @@ class Log
public static function __callStatic($name, $arguments) public static function __callStatic($name, $arguments)
{ {
$msg = $arguments[0]; $msg = $arguments[0];
if (is_array($msg)) {
$msg = var_export($msg, true);
}
$channel = $arguments[1]; $channel = $arguments[1];
return static::log($channel)->{$name}($msg); return static::log($channel)->{$name}($msg);
} }
......
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