Commit 2f8335a5 by 徐高华

Merge branch 'bugfix/2023-04-10' into 'master'

把qrcode中http替换为https

See merge request !1112
parents 38fd9473 7c36bdf1
...@@ -2,6 +2,7 @@ package com.gic.haoban.manage.web.controller; ...@@ -2,6 +2,7 @@ package com.gic.haoban.manage.web.controller;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.convert.Convert; import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.gic.api.base.commons.Page; import com.gic.api.base.commons.Page;
...@@ -1747,7 +1748,13 @@ public class WxStaffController extends WebBaseController { ...@@ -1747,7 +1748,13 @@ public class WxStaffController extends WebBaseController {
@RequestMapping("update-qr-code") @RequestMapping("update-qr-code")
public RestResponse<Object> updateQrCode(String staffId , String qrCode){ 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() ; 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