forked from lilishop/lilishop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
解决积分商品购买问题,部分参数校验问题,等各种问题优化 # Conflicts: # framework/src/main/java/cn/lili/modules/goods/entity/dto/GoodsOperationDTO.java
- Loading branch information
Showing
21 changed files
with
225 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/** 新增会员获的总积分 **/ | ||
ALTER TABLE li_store ADD merchant_euid varchar(255) COMMENT '客服标识'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
common-api/src/main/java/cn/lili/controller/common/IMController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package cn.lili.controller.common; | ||
|
||
|
||
import cn.hutool.json.JSONUtil; | ||
import cn.lili.common.enums.ResultCode; | ||
import cn.lili.common.enums.ResultUtil; | ||
import cn.lili.common.exception.ServiceException; | ||
import cn.lili.common.vo.ResultMessage; | ||
import cn.lili.modules.system.entity.dos.Setting; | ||
import cn.lili.modules.system.entity.dto.ImSetting; | ||
import cn.lili.modules.system.entity.enums.SettingEnum; | ||
import cn.lili.modules.system.service.SettingService; | ||
import io.swagger.annotations.Api; | ||
import io.swagger.annotations.ApiOperation; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
/** | ||
* IM控制器 | ||
* | ||
* @author Chopper | ||
* @version v1.0 | ||
* 2021-09-16 15:32 | ||
*/ | ||
@RestController | ||
@RequestMapping("/common/IM") | ||
@Api(tags = "IM 中心") | ||
public class IMController { | ||
|
||
@Autowired | ||
private SettingService settingService; | ||
|
||
@ApiOperation(value = "获取店铺列表分页") | ||
@GetMapping | ||
public ResultMessage<String> getUrl() { | ||
String imUrl; | ||
try { | ||
Setting imSettingVal = settingService.get(SettingEnum.IM_SETTING.name()); | ||
ImSetting imSetting = JSONUtil.toBean(imSettingVal.getSettingValue(), ImSetting.class); | ||
imUrl = imSetting.getHttpUrl() + "?tenant_id=" + imSetting.getTenantId()+"&merchant_euid="; | ||
} catch (Exception e) { | ||
throw new ServiceException(ResultCode.PLATFORM_NOT_SUPPORTED_IM); | ||
} | ||
return ResultUtil.data(imUrl); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 0 additions & 57 deletions
57
consumer/src/main/java/cn/lili/event/impl/PointExecute.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.