| | |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.api.smo.DefaultAbstractComponentSMO; |
| | | import com.java110.core.base.smo.front.AbstractFrontServiceSMO; |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.core.context.PageData; |
| | |
| | | import com.java110.utils.util.StringUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpMethod; |
| | | import org.springframework.http.HttpStatus; |
| | |
| | | * wx登录 |
| | | */ |
| | | @Service("staffAuthSMOImpl") |
| | | public class StaffAuthSMOImpl extends AbstractFrontServiceSMO implements IStaffAuthSMO { |
| | | public class StaffAuthSMOImpl extends DefaultAbstractComponentSMO implements IStaffAuthSMO { |
| | | |
| | | private final static Logger logger = LoggerFactory.getLogger(StaffAuthSMOImpl.class); |
| | | |
| | |
| | | paramAuth.put("openName", paramObj.getString("nickname")); |
| | | |
| | | ResponseEntity<String> responseEntity = this.callCenterService(restTemplate, pd, paramAuth.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/staff/updateStaffAppAuth", HttpMethod.POST); |
| | | "/staff/updateStaffAppAuth", HttpMethod.POST); |
| | | url = MappingCache.getValue("OWNER_WECHAT_URL"); |
| | | return ResultVo.redirectPage(url); |
| | | |
| | |
| | | "", "", "", "", |
| | | pd.getAppId()); |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/smallWeChat.listSmallWeChats?communityId=" |
| | | "smallWeChat.listSmallWeChats?communityId=" |
| | | + paramIn.getString("communityId") + "&page=1&row=1&weChatType=" + SmallWeChatDto.WECHAT_TYPE_PUBLIC, HttpMethod.GET); |
| | | |
| | | if (responseEntity.getStatusCode() != HttpStatus.OK) { |