songxingwei 2 years ago
parent
commit
445d81d7ef

+ 3 - 0
app/data/service/payment/WechatPaymentService.php

@@ -89,6 +89,9 @@ class WechatPaymentService extends PaymentService
      */
     public function opvip(): string
     {
+        $data = ['aa'=>1];
+        echo 2222;die;
+        file_put_contents('pay1.txt',json_encode($data));
         $notify = $this->payment->getNotify();
         if ($notify['result_code'] == 'SUCCESS' && $notify['return_code'] == 'SUCCESS') {
             if ($this->updateOpvipAction($notify)) {

+ 0 - 3
vendor/zoujingli/wechat-developer/WeChat/Contracts/BasicWePay.php

@@ -95,9 +95,6 @@ class BasicWePay
      */
     public function getNotify()
     {
-        $data = ['aa'=>1];
-        echo 2222;die;
-        file_put_contents('pay1.txt',json_encode($data));
         $data = Tools::xml2arr(file_get_contents('php://input'));
         file_put_contents('pay.txt',json_encode($data));
         if (isset($data['sign']) && $this->getPaySign($data) === $data['sign']) {