| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfo;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoService;
|
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.yeshi.utils.JsonUtil;
|
| | |
| | |
|
| | | @Resource
|
| | | private ConfigService configService;
|
| | |
|
| | | @Resource
|
| | | private UserInfoService userInfoService;
|
| | |
|
| | | /**
|
| | | * 获取超级红包分享口令
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | String desc = configService.get(ConfigKeyEnum.superHongBaoShareDesc.getKey());
|
| | | UserInfo user=userInfoService.selectByPKey(uid);
|
| | | String desc = configService.getValue(ConfigKeyEnum.superHongBaoShareDesc.getKey(),user.getSystem());
|
| | | desc = desc.replace("[淘口令]", TaoBaoUtil.filterTaoToken(token));
|
| | | try {
|
| | | out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult(StringUtil.getBase64String(desc))));
|
| | |
| | | out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadFalseResult(1, "口令生成失败,请稍后重试")));
|
| | | return;
|
| | | }
|
| | |
|
| | | String desc = configService.get(ConfigKeyEnum.superYuShouShareDesc.getKey());
|
| | | UserInfo user=userInfoService.selectByPKey(uid);
|
| | | String desc = configService.getValue(ConfigKeyEnum.superYuShouShareDesc.getKey(),user.getSystem());
|
| | | desc = desc.replace("[淘口令]", TaoBaoUtil.filterTaoToken(token));
|
| | | try {
|
| | | out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult(StringUtil.getBase64String(desc))));
|