From 07e7bfca798d28e5e155d3e45e761f6f5a1eea6e Mon Sep 17 00:00:00 2001
From: heshupeng <hsp@bronet.cn>
Date: Thu, 17 Dec 2020 14:35:09 +0800
Subject: [PATCH] 职位海报

---
 application/api/controller/Index.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/application/api/controller/Index.php b/application/api/controller/Index.php
index 44fbff0..0191199 100644
--- a/application/api/controller/Index.php
+++ b/application/api/controller/Index.php
@@ -420,7 +420,8 @@ class Index extends Api
         // 职位小程序码
         $qrcode = $dir.'/qrcode_'.$job_id.'.png';
         if(!file_exists($qrcode)){
-            $response = Wechat::miniProgram()->app_code->getUnlimit($job_id, [
+            $user_id = $this->auth->id > 0 ? $this->auth->id : 0;
+            $response = Wechat::miniProgram()->app_code->getUnlimit($job_id.'_'.$user_id, [
                 'page'  => 'pages/zhiwei_xq/zhiwei_xq',
                 'width' => 280, //最小宽度280
             ]);
--
libgit2 0.24.0