| | |
| | | import com.java110.user.bmo.staffAppAuth.ISaveStaffAppAuthBMO; |
| | | import com.java110.user.bmo.staffAppAuth.IUpdateStaffAppAuthBMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.ResultVo; |
| | |
| | | public ResponseEntity<String> generatorQrCode(@RequestHeader(value = "store-id") String storeId, |
| | | @RequestHeader(value = "user-id") String userId, |
| | | @RequestParam(value = "communityId") String communityId) { |
| | | |
| | | SmallWeChatDto smallWeChatDto = new SmallWeChatDto(); |
| | | smallWeChatDto.setObjId(communityId); |
| | | smallWeChatDto.setObjType(SmallWeChatDto.OBJ_TYPE_COMMUNITY); |
| | | smallWeChatDto.setWechatType(SmallWeChatDto.WECHAT_TYPE_PUBLIC); |
| | | List<SmallWeChatDto> smallWeChatDtos = smallWeChatInnerServiceSMOImpl.querySmallWeChats(smallWeChatDto); |
| | | String ownerUrl = MappingCache.getValue("OWNER_WECHAT_URL") |
| | | String ownerUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN,"OWNER_WECHAT_URL") |
| | | + "/app/staffAuth?storeId=" + storeId + "&staffId=" + userId |
| | | + "&communityId=" + communityId + "&appId=" + AppDto.WECHAT_OWNER_APP_ID; |
| | | |
| | | if (smallWeChatDtos != null && smallWeChatDtos.size() > 0) { |
| | | ownerUrl += ("&wAppId=" + smallWeChatDtos.get(0).getAppid()); |
| | | ownerUrl += ("&wAppId=" + smallWeChatDtos.get(0).getAppId()); |
| | | } |
| | | return ResultVo.createResponseEntity(ownerUrl); |
| | | } |