WIN-2308041133\Administrator 6 meses atrás
pai
commit
acc0de8dc5
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      application/api/controller/Wechat.php

+ 2 - 2
application/api/controller/Wechat.php

@@ -119,7 +119,7 @@ class Wechat extends Api
 
 //            $notify_url=Request::instance()->domain() . "/api/wechat/notify/" . $cid; //回调接口
             $app_id='wx5681205d1ef4d9d3';
-            $mch_id ='';
+            $mch_id ='1623907696';
             $sub_mch_id ='';
             $contract_code =$this->generateRandomString(12);
             $notify_url=Request::instance()->domain() . "/api/wechat/notify/" . 12; //回调接口  $cid 企业id
@@ -146,7 +146,7 @@ class Wechat extends Api
             ksort($array);
             $xml='';
             foreach ($array as $key => $value){
-                $xml=$xml.$key.'="'.$value.'&';
+                $xml=$xml.$key.'='.$value.'&';
             }
             $xml=substr($xml, 0, -1);
             var_dump($xml);