Преглед изворни кода

代理-二维码相关修改

whitefang пре 1 година
родитељ
комит
bbca335222
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/adminapi/logic/property/PropertyHeadLogic.php

+ 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 '';