wesmiler 3 months ago
parent
commit
7ca23a5354
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Services/MpService.php

+ 1 - 1
app/Services/MpService.php

@@ -167,7 +167,7 @@ class MpService extends BaseService
             $cacheKey = "caches:members:mp_{$this->mpAppid}:";
             $filePath = base_path('public/uploads');
             $qrFile = '/qrcodes/mp_'.date("YmdHis")."_".md5($page.$scene).".png";
-            $qrKey = md5($qrFile);
+            $qrKey = md5(date("Ym").$page.$scene);
             if(RedisService::get($cacheKey.$qrKey) && file_exists($filePath.'/'.$qrFile) && !$refresh){
                 return $qrFile;
             }