|
@@ -541,6 +541,12 @@ public class TaPersonController extends BaseController {
|
541
|
541
|
@RequestMapping(value="/wx/customer/recommend/becomeChannel",method= RequestMethod.PUT)
|
542
|
542
|
public ResponseBean taRecommendAgentBecomeChannel(@RequestParam(required = false) String channelCode,HttpServletRequest request,@RequestParam("personType")String personType){
|
543
|
543
|
ResponseBean responseBean = new ResponseBean();
|
|
544
|
+
|
|
545
|
+ if (org.apache.commons.lang3.StringUtils.isBlank(personType)) {
|
|
546
|
+ responseBean.addSuccess("personType为空");
|
|
547
|
+ return responseBean;
|
|
548
|
+ }
|
|
549
|
+
|
544
|
550
|
String openid = getOpenId(request);
|
545
|
551
|
List<TaPerson> taPersons = taPersonService.getPersonsByOpenId(openid);
|
546
|
552
|
if (null == taPersons || taPersons.size() != 1) {
|