|
@@ -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'];
|