|  | @@ -11,6 +11,7 @@ import com.yonge.cooleshow.common.entity.HttpResponseResult;
 | 
	
		
			
				|  |  |  import com.yonge.toolset.base.exception.BizException;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  | +import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.validation.annotation.Validated;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.GetMapping;
 | 
	
	
		
			
				|  | @@ -53,6 +54,12 @@ public class OpenTenantController {
 | 
	
		
			
				|  |  |      public HttpResponseResult<Boolean> bindWechat(@RequestParam("phone") String phone,
 | 
	
		
			
				|  |  |                                                    @RequestParam("openId") String openId,
 | 
	
		
			
				|  |  |                                                    @RequestParam("code") String code) {
 | 
	
		
			
				|  |  | +        if (StringUtils.isEmpty(openId)) {
 | 
	
		
			
				|  |  | +            throw new BizException("openId不能为空");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if (StringUtils.isEmpty(phone)) {
 | 
	
		
			
				|  |  | +            throw new BizException("手机号不能为空");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          // 校验验证码
 | 
	
		
			
				|  |  |          boolean validCode = smsCodeService.verifyValidCode(phone, code, "LOGIN");
 | 
	
		
			
				|  |  |          if (!validCode) {
 |