Kaynağa Gözat

代理-二维码相关修改

whitefang 1 yıl önce
ebeveyn
işleme
bbca335222

+ 1 - 1
app/adminapi/logic/property/PropertyHeadLogic.php

@@ -183,7 +183,7 @@ class PropertyHeadLogic extends BaseLogic
             }
             $file_name = 'uploads/wx_qrcode/'.date('Ymd').'/'.time().rand(1000,9999).'.png';
             file_put_contents($file_name, $qrcode);
-            return $url.'/'.$file_name;
+            return  'data:png;base64,' . base64_encode($file_name);
         } catch (\Throwable $e) {
             Log::info('getQRCode:'.$e->getMessage());
             return '';