|  |  | 
 |  |  |  | 
 |  |  | import com.alibaba.fastjson.JSONObject; | 
 |  |  | import com.matrix.component.redis.RedisClient; | 
 |  |  | import com.matrix.core.constance.MatrixConstance; | 
 |  |  | import com.matrix.core.pojo.AjaxResult; | 
 |  |  | import com.matrix.core.tools.LogUtil; | 
 |  |  | import com.matrix.core.tools.StringUtils; | 
 |  |  | import com.matrix.core.tools.UUIDUtil; | 
 |  |  | import com.matrix.core.tools.WebUtil; | 
 |  |  | import com.matrix.system.app.authority.AppAuthorityManager; | 
 |  |  | import com.matrix.system.app.dto.LoginDto; | 
 |  |  | import com.matrix.system.app.dto.PwdResetDto; | 
 |  |  | import com.matrix.system.app.dto.SmsCodeDto; | 
 |  |  | 
 |  |  |     private SysShopInfoService sysShopInfoService; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private DefaultAuthorityManager authorityManager; | 
 |  |  |     private AppAuthorityManager authorityManager; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private RedisClient redisClient; | 
 |  |  | 
 |  |  |         userInfoVo.setPhoto(user.getSuPhoto()); | 
 |  |  |  | 
 |  |  |         AjaxResult result = AjaxResult.buildSuccessInstance("登陆成功"); | 
 |  |  |         authorityManager.initUserPower(result,user); | 
 |  |  |         result.putInMap("user", userInfoVo); | 
 |  |  |         result.putInMap("token", token); | 
 |  |  |         return result; | 
 |  |  | 
 |  |  |         LogUtil.info("fileName : {}", fileName); | 
 |  |  |  | 
 |  |  |         AjaxResult ajaxResult = AjaxResult.buildSuccessInstance("上传成功"); | 
 |  |  |         ajaxResult.putInMap("file", fileName); | 
 |  |  |         ajaxResult.putInMap("file", saveUrl + fileName); | 
 |  |  |         return ajaxResult; | 
 |  |  |     } | 
 |  |  |  |