whitefang 1 год назад
Родитель
Сommit
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 '';