Browse Source

会员升级

Kirin 9 months ago
parent
commit
f4a7ffcada
2 changed files with 1 additions and 1 deletions
  1. 0 1
      app/Request.php
  2. 1 0
      app/services/pay/PayServices.php

+ 0 - 1
app/Request.php

@@ -138,7 +138,6 @@ class Request extends \think\Request
      */
     public function getFromType()
     {
-        @file_put_contents('from_type.txt', $this->header('Form-type', ''), FILE_APPEND);
         return $this->header('Form-type', '');
     }
 

+ 1 - 0
app/services/pay/PayServices.php

@@ -121,6 +121,7 @@ class PayServices
                     } else {
                         //微信支付,从APP端请求过来
                         if (request()->isApp()) {
+                            @file_put_contents('from_type.txt', 'sdadas', FILE_APPEND);
                             return Payment::appPay($openid, $orderId, $price, $successAction, $body);
                         } else {
                             //开启了v3支付