|
@@ -17,6 +17,7 @@ import com.fdkankan.redis.util.RedisUtil;
|
|
import com.fdkankan.tk.common.FilePath;
|
|
import com.fdkankan.tk.common.FilePath;
|
|
import com.fdkankan.tk.common.PageInfo;
|
|
import com.fdkankan.tk.common.PageInfo;
|
|
import com.fdkankan.tk.common.ResultCode;
|
|
import com.fdkankan.tk.common.ResultCode;
|
|
|
|
+import com.fdkankan.tk.common.WxSharCodePath;
|
|
import com.fdkankan.tk.common.util.JwtUtil;
|
|
import com.fdkankan.tk.common.util.JwtUtil;
|
|
import com.fdkankan.tk.common.util.RedisKeyUtil;
|
|
import com.fdkankan.tk.common.util.RedisKeyUtil;
|
|
import com.fdkankan.tk.common.util.RoomUtil;
|
|
import com.fdkankan.tk.common.util.RoomUtil;
|
|
@@ -201,8 +202,7 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
|
|
|
|
String localPath = String.format(FilePath.LOCAL_QRCODE_PATH, type,roomId);
|
|
String localPath = String.format(FilePath.LOCAL_QRCODE_PATH, type,roomId);
|
|
String ossPath = String.format(FilePath.OSS_QRCODE_PATH,type, roomId);
|
|
String ossPath = String.format(FilePath.OSS_QRCODE_PATH,type, roomId);
|
|
- String path = "id="+roomId+"&role=%s";
|
|
|
|
- path = String.format(path,type);
|
|
|
|
|
|
+ String path = String.format(WxSharCodePath.sharCodePath,roomId,type);
|
|
wxService.getWxQRCode(path,localPath,0);
|
|
wxService.getWxQRCode(path,localPath,0);
|
|
if(!new File(localPath).exists()){
|
|
if(!new File(localPath).exists()){
|
|
throw new BusinessException(ResultCode.QRCODE_MISS);
|
|
throw new BusinessException(ResultCode.QRCODE_MISS);
|