| | |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | return ResultUtil.success(tappuService.queryUserOfStus(userIdFormRedis,longitude,latitude)); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(ResultUtil.ERROR); |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | String numberRandom = UUIDUtil.getNumberRandom(6); |
| | | aLiSendSms.sendSms(phone, "SMS_161275250", "{\"code\":\"" + numberRandom + "\"}"); |
| | | String templateCode = ""; |
| | | if(type == 1 || type == 2){ |
| | | templateCode = "SMS_161275250"; |
| | | } |
| | | if(type == 3 || type == 4){ |
| | | templateCode = "SMS_160960014"; |
| | | } |
| | | aLiSendSms.sendSms(phone, templateCode, "{\"code\":\"" + numberRandom + "\"}"); |
| | | redisUtil.setStrValue(phone, numberRandom, 300); |
| | | return ResultUtil.success(); |
| | | } |
| | |
| | | // 设置鉴权参数,初始化客户端 |
| | | private DefaultProfile profile = DefaultProfile.getProfile( |
| | | "cn-hangzhou",// 地域ID |
| | | "LTAI4G9Zez9H4B36vakPXGy4",// 您的AccessKey ID |
| | | "BOVPUeZndKVbrPOq6Ef5j6oiydB3XZ");// 您的AccessKey Secret |
| | | "LTAI5tSWQMMn9HNU9Zatoe1T",// 您的AccessKey ID |
| | | "kSOsRakIMPbvTlgXU19pYfbwmBXBA4");// 您的AccessKey Secret |
| | | private IAcsClient client = new DefaultAcsClient(profile); |
| | | |
| | | private static void log_print(String functionName, Object result) { |
| | |
| | | import com.dsh.other.entity.TImgConfig; |
| | | import com.dsh.other.service.TImgConfigService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | .eq("position", 1)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取系统图片 |
| | | * @param position |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/base/systemImg/querySystemImg") |
| | | @ApiOperation(value = "获取各种系统图片", tags = {"APP-公共接口"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "位置(1=无学员,2=成为会员,3=我的券包,4=线上商城,5=本周福利,6=今日免费)", name = "position", dataType = "int", required = true), |
| | | }) |
| | | public String querySystemImg(@RequestBody Integer position){ |
| | | TImgConfig imgConfig = imgConfigService.getBaseMapper().selectOne(new QueryWrapper<TImgConfig>().eq("position", position)); |
| | | return imgConfig.getContent(); |
| | | } |
| | | |
| | | } |