瀏覽代碼

日志调试

moonsflyer 5 月之前
父節點
當前提交
04b80434e0
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      app/common.php
  2. 1 0
      app/shopapi/controller/PayController.php

+ 1 - 0
app/common.php

@@ -30,6 +30,7 @@ function create_token(string $extra = ''): string
     return md5($extra . time().uniqid('likeshop'));
 }
 
+
 function gift_card_pass(){
     $time = date('y').date('m').date('d').getNonceStr(6);
     return str_shuffle($time);

+ 1 - 0
app/shopapi/controller/PayController.php

@@ -48,6 +48,7 @@ class PayController extends BaseShopController
         $params = (new PayValidate())->post()->goCheck();
         //订单信息
         $order = PaymentLogic::getPayOrderInfo($params,$this->userInfo['terminal']);
+        outFileLog($order,'prepay','order');
         if (false === $order) {
             return $this->fail(PaymentLogic::getError(), $params);
         }