Commit 39c179fd by 徐高华

ai换装

parent 26b23f14
...@@ -379,16 +379,11 @@ public class WxStaffController extends WebBaseController { ...@@ -379,16 +379,11 @@ public class WxStaffController extends WebBaseController {
@IgnoreLogin @IgnoreLogin
@RequestMapping("/get-ai-custom-setting") @RequestMapping("/get-ai-custom-setting")
public RestResponse<Object> getAiCustomSetting(String enterpriseId , String clerkId) { public RestResponse<Object> getAiCustomSetting(String enterpriseId , String clerkId) {
String wmId = ""; String clerkCode = "";
if(null != clerkId) { if(null != clerkId) {
ClerkDTO clerkDTO = this.clerkService.getClerkByClerkId(clerkId); ClerkDTO clerkDTO = this.clerkService.getClerkByClerkId(clerkId);
if (null != clerkDTO && clerkDTO.getClerkType()<=1) { if (null != clerkDTO && clerkDTO.getClerkType()<=1) {
String clerkCode = clerkDTO.getClerkCode(); clerkCode = clerkDTO.getClerkCode();
ServiceResponse<WmGuiderInfoDTO> resp = this.gicWeimobGuiderRelService.getWmClerkInfoByClerkCode(enterpriseId, clerkCode);
if (null != resp.getResult()) {
logger.info("wm={}", JSONObject.toJSONString(resp));
wmId = "" + resp.getResult().getGuiderVid();
}
} }
} }
List<JSONObject> list = CustomSwitcher.haoban_ai_custom ; List<JSONObject> list = CustomSwitcher.haoban_ai_custom ;
...@@ -396,7 +391,7 @@ public class WxStaffController extends WebBaseController { ...@@ -396,7 +391,7 @@ public class WxStaffController extends WebBaseController {
voList = voList.stream().filter(o->o.getIsOpen()==1 && o.getEid().equals(enterpriseId)).collect(Collectors.toList()); voList = voList.stream().filter(o->o.getIsOpen()==1 && o.getEid().equals(enterpriseId)).collect(Collectors.toList());
if(CollectionUtils.isNotEmpty(voList)) { if(CollectionUtils.isNotEmpty(voList)) {
AiCustomVO vo = voList.get(0) ; AiCustomVO vo = voList.get(0) ;
String h5 = String.format(vo.getUrl(),wmId) ; String h5 = String.format(vo.getUrl(),clerkCode) ;
String str = "{\"url\":\""+h5+"\",\"id\":\"5\"}" ; String str = "{\"url\":\""+h5+"\",\"id\":\"5\"}" ;
Map<String, Object> map = this.enterpriseWxaLinkService.getWxaLinkAndQrCode(enterpriseId,str) ; Map<String, Object> map = this.enterpriseWxaLinkService.getWxaLinkAndQrCode(enterpriseId,str) ;
vo.setPath(map.get("link").toString()); vo.setPath(map.get("link").toString());
......
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