Browse Source

hitpay支付浏览器地址日志

lizhen_gitee 4 months ago
parent
commit
3e4af8778f
1 changed files with 12 additions and 0 deletions
  1. 12 0
      application/api/controller/Demo.php

+ 12 - 0
application/api/controller/Demo.php

@@ -6,6 +6,7 @@ use app\common\controller\Api;
 use Aws\Sns\SnsClient;
 use Aws\Exception\AwsException;
 use app\common\library\Getui;
+use think\Db;
 
 use getui\GTClient;
 use getui\GTPushRequest;
@@ -46,6 +47,17 @@ class Demo extends Api
         })
      */
 
+    public function hitpay_redirect_log(){
+        $url = input('url','');
+
+        $data = [
+            'url' => $url,
+            'createdate' => date('Y-m-d H:i:s'),
+        ];
+        Db::name('hitpay_redirect_log')->insertGetId($data);
+        $this->success(1);
+    }
+
     public function getui2(){
         $config = config('getui');
         $this->appId        = $config['gt_app_id'];