From 531f49131bb366a413c86b413e28660df8c18a16 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Wed, 27 Nov 2024 14:35:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E8=A1=8C=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Billions.php | 4 ++++ app/api/controller/Gh.php | 4 ++-- app/api/controller/Huifu.php | 38 +++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/app/api/controller/Billions.php b/app/api/controller/Billions.php index 5c226fb2..2992c94d 100755 --- a/app/api/controller/Billions.php +++ b/app/api/controller/Billions.php @@ -249,6 +249,10 @@ class Billions extends Api $da['create_time'] = date("Y-m-d H:i:s"); Db::name("subsidy_withdrawal_record")->save($da); return JsonServer::success('零钱提现中'); + } + + public function advance($billions_id,$money){ + } public static function removeEmojiChar($str){ diff --git a/app/api/controller/Gh.php b/app/api/controller/Gh.php index 7f9d79ab..2b42891b 100644 --- a/app/api/controller/Gh.php +++ b/app/api/controller/Gh.php @@ -142,8 +142,8 @@ class Gh extends Api $rest = Db::name("abutment_log")->insertGetId($data); $res = $this->apiClient->execute($request,$msg_id,""); $result = json_decode($res,true); - // print_r("
");
-        // var_dump($result);
+           print_r("
");
+         var_dump($result);
         $r = json_decode($result['wx_data_package'],true);
 
         if($order_id == 0){
diff --git a/app/api/controller/Huifu.php b/app/api/controller/Huifu.php
index 1510cda0..5bb523e3 100644
--- a/app/api/controller/Huifu.php
+++ b/app/api/controller/Huifu.php
@@ -59,4 +59,42 @@ class Huifu extends Api
             var_dump($result);
         }
     }
+
+    public function test(){
+        $data = [
+            'agetId'=>"FWH000025501",
+            'custId'=>"60000008228471",
+            'orderNo'=>"dlh".time().$user_id,
+            'txamt'=>$money,
+            'openid'=>$user['openid'],
+            'payWay'=>"1",
+            'ip'=>$_SERVER['REMOTE_ADDR'],
+            'timeStamp'=>time(),
+            'version'=>"1.0.0",
+            'wxAppid'=>'wx586d77b9edb0636d',
+            'traType'=>'8'
+        ];
+        $d =$this->ASCII($data);
+        $data['sign'] = $this->sign($d,$this->publicKey);
+        print_r("
");
+        var_dump($data);
+        $b = json_encode($data,true);
+        var_dump($b);
+        $url = "https://yyfsvxm.postar.cn/yyfsevr/order/pay";
+        $result = $this->curl_post($url,$b);
+        var_dump($result);
+    }
+    function ASCII($params=array()){
+        ksort($params);
+        reset($params);
+        $str = "";
+        $t = array();
+        foreach($params as $key=>$value){
+            $t[] = $key."=".$value;
+        }
+
+        $str = implode("&",$t);
+//        $str = http_build_query($params,'','&');
+        return $str;
+    }
 }
\ No newline at end of file