浏览代码

代理-二维码相关修改

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_name = 'uploads/wx_qrcode/'.date('Ymd').'/'.time().rand(1000,9999).'.png';
             file_put_contents($file_name, $qrcode);
             file_put_contents($file_name, $qrcode);
-            return $url.'/'.$file_name;
+            return  'data:png;base64,' . base64_encode($file_name);
         } catch (\Throwable $e) {
         } catch (\Throwable $e) {
             Log::info('getQRCode:'.$e->getMessage());
             Log::info('getQRCode:'.$e->getMessage());
             return '';
             return '';