Robin před 6 roky
rodič
revize
91a00c2037

+ 1 - 0
normandcrm/crm/backend/controllers/PayController.php

@@ -22,6 +22,7 @@ class PayController extends Controller
         if ($payType <= 0) {
             return 'invalid request';
         }
+        file_put_contents('huiqi1.txt',$payType);
         if (Yii::$app->getRequest()->getIsPost()) {
             $data = Yii::$app->getRequest()->post();
             if (empty($data)) {

+ 1 - 0
normandcrm/crm/backend/models/PayApi.php

@@ -29,6 +29,7 @@ class PayApi extends BaseApi
     public function callNotify($data, $payType)
     {
         !isset($data['payType']) && $data['payType'] = $payType;
+        file_put_contents('huiqi2.txt',$payType);
         $result = $this->post($this->apiUrl . '/notify', $data);
         if ($result['code'] == 1) {
             return $this->returnArray(1, $result['data'], $result['message']);

+ 1 - 0
normandcrm/crm/backend/web/1234.txt

@@ -0,0 +1 @@
+web

+ 1 - 0
normandcrm/crm/backend/web/pay11111.txt

@@ -0,0 +1 @@
+19

+ 4 - 0
normandcrm/service/backend/controllers/PayController.php

@@ -32,7 +32,11 @@ class PayController extends BaseController
     public function actionNotify()
     {
         $model = new PayForm();
+
+
         $data = Yii::$app->getRequest()->post();
+        $tt = print_r($data,true);
+        file_put_contents('huiqi3.txt',$tt);
         if ($model->handleNotify($data)) {
             return $this->outJson(1, $model->getOutNotifyResult());
         } else {

+ 1 - 0
normandcrm/service/backend/web/e.txt

@@ -0,0 +1 @@
+111

+ 1 - 0
normandcrm/service/common/pay/BasePayHandler.php

@@ -65,6 +65,7 @@ eot;
      */
     public static function getPayHandlerByPayType($payType)
     {
+        file_put_contents('huiqi5.txt',$payType);
         switch ($payType) {
             case 1:
                 $handler = new \common\pay\renren\PayHandler();

+ 1 - 0
normandcrm/service/common/pay/PayForm.php

@@ -175,6 +175,7 @@ class PayForm extends Model
     public function handleNotify($data)
     {
         $payType = isset($data['payType']) ? trim($data['payType']) : '';
+        file_put_contents('huiqi4.txt',$payType);
         unset($data['token']);
         unset($data['payType']);
         $handler = BasePayHandler::getPayHandlerByPayType($payType);