yingzi 1 yıl önce
ebeveyn
işleme
1d66f31d4d
2 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 1 1
      app/api/controller/User.php
  2. 1 0
      library/lib/weixina.php

+ 1 - 1
app/api/controller/User.php

@@ -651,7 +651,7 @@ class User extends BaseController
     public function getWxmpInviteQrcode(Request $request){
         $weixinA = new weixina();
         $data = $weixinA->getUnlimitedQRCode("pages/index/index","scene=".$request->user["uid"]);
-        var_dump($data);
+//        var_dump($data);
         if(empty($data)){
             return app('json')->fail("小程序码获取失败".$weixinA->error);
         }

+ 1 - 0
library/lib/weixina.php

@@ -291,6 +291,7 @@ class weixina {
         curl_setopt($curl, CURLOPT_URL, $url);
         curl_setopt($curl, CURLOPT_HEADER, false);
         curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
+        curl_setopt($curl, CURLOPT_NOBODY, true);
         curl_setopt($curl, CURLOPT_POST, true);
         curl_setopt($curl, CURLOPT_POSTFIELDS, $curlPost);
         $return_str = curl_exec($curl);