Explorar o código

支付回调增加日志

kevin_zhangl %!s(int64=3) %!d(string=hai) anos
pai
achega
309dcdf7a7
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      common/helpers/Tool.php

+ 3 - 1
common/helpers/Tool.php

@@ -495,12 +495,14 @@ class Tool {
      * PayStack订单写入MongoDB.
      * @param $call
      * @return void
+     * @throws \Exception
      */
     public static function approachOrderCall($call)
     {
+        LoggerTool::notice($call);
         $model = new ApproachOrderCall();
         $model->event = $call['event'];
         $model->data = $call['data'];
-        $model->save();
+        $model->insert();
     }
 }