Bladeren bron

会员升级

Kirin 1 jaar geleden
bovenliggende
commit
80183c44ab
3 gewijzigde bestanden met toevoegingen van 29 en 0 verwijderingen
  1. 1 0
      app/controller/api/v1/PublicController.php
  2. 27 0
      app/controller/api/v1/WithdrawController.php
  3. 1 0
      route/api.php

+ 1 - 0
app/controller/api/v1/PublicController.php

@@ -72,6 +72,7 @@ class PublicController extends BaseController
             '佣金提现'
         ));
 
+        //SYYX12023122016485345574
         //{"enterprise_professional_facilitator_id":239164,"professional_id":286137,"professional_sn":"P0286137"}
         // { ["transactionCode"]=> string(22) "APL1737385463784161280" ["signUrl"]=> string(186) "https://h5.sandbox.junziqian.com/signInfo/viewDetail?ts=1703059948458&signNo=SSN1737385463805132800&sign=spDB2t_oorkOKb-Odi-wHpPbFPxhp2JeCSPehR8MyoQ&backUrl=https%3A%2F%2Fwww.syushop.com" }
 

+ 27 - 0
app/controller/api/v1/WithdrawController.php

@@ -0,0 +1,27 @@
+<?php
+// +----------------------------------------------------------------------
+// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
+// +----------------------------------------------------------------------
+// | Author: CRMEB Team <admin@crmeb.com>
+// +----------------------------------------------------------------------
+namespace app\controller\api\v1;
+
+use app\Request;
+use crmeb\basic\BaseController;
+
+/**
+ * 公共类
+ * Class PublicController
+ * @package app\controller\api
+ */
+class WithdrawController extends BaseController
+{
+    public function notify(Request $request)
+    {
+        @file_put_contents('notify.txt', json_encode($request->post()) . PHP_EOL, FILE_APPEND);
+    }
+}

+ 1 - 0
route/api.php

@@ -51,6 +51,7 @@ Route::group('api', function () {
         //公共类
         Route::get('index', 'v1.PublicController/index')->name('index');//首页
         Route::any('test', 'v1.PublicController/test')->name('test');//测试
+        Route::any('withdraw/notify', 'v1.WithdrawController/notify')->name('withdrawNotify');//测试
         Route::get('menu/user', 'v1.PublicController/menu_user')->name('menuUser');//个人中心菜单
 
         //商品类