Commit 7c36bdf1 by jinxin

把qrcode中http替换为https

parent 38fd9473
......@@ -2,6 +2,7 @@ package com.gic.haoban.manage.web.controller;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.gic.api.base.commons.Page;
......@@ -1747,7 +1748,13 @@ public class WxStaffController extends WebBaseController {
@RequestMapping("update-qr-code")
public RestResponse<Object> updateQrCode(String staffId , String qrCode){
this.staffApiService.updateQrCodeByStaffId(staffId, qrCode) ;
//需要把qrcode中http替换为https
if(StrUtil.isBlank(qrCode)){
return RestResponse.failure("-1", "参数不能为空!!!");
}
String s = qrCode.substring(qrCode.indexOf(":"));
String q = "https"+s;
this.staffApiService.updateQrCodeByStaffId(staffId, q) ;
return RestResponse.successResult() ;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment