Browse Source

修复优惠券发布权限

zyj
sj 2 years ago
parent
commit
efa1a331bb
  1. 3
      yudao-server/src/main/resources/application-local.yaml
  2. 2
      zsw-bxg/src/main/java/co/yixiang/constant/ShopConstants.java
  3. 3
      zsw-bxg/src/main/java/co/yixiang/modules/activity/rest/StoreCouponIssueController.java

3
yudao-server/src/main/resources/application-local.yaml

@ -243,7 +243,8 @@ dubbo:
bxg:
shop:
API_URL: http://192.168.10.113:48080/bxgApp
API_URL: https://2598-27-19-79-216.jp.ngrok.io
# API_URL: http://192.168.10.113:48080/bxgApp
SITE_URL: http://192.168.10.113:48080/bxgApp
UNI_SITE_URL: http://192.168.10.113:48080/bxgApp
ADMIN_API_URL: http://192.168.10.113:48080/bxg

2
zsw-bxg/src/main/java/co/yixiang/constant/ShopConstants.java

@ -114,7 +114,7 @@ public interface ShopConstants {
/**
* 签到天数
*/
String ZSW_SIGN_DAY_NUM = "zsw_sign_day_num";
String ZSW_SIGN_DAY_NUM = "yshop_sign_day_num";
/**
* 打印机配置

3
zsw-bxg/src/main/java/co/yixiang/modules/activity/rest/StoreCouponIssueController.java

@ -52,7 +52,8 @@ public class StoreCouponIssueController {
@Log("发布")
@ApiOperation(value = "发布")
@PostMapping(value = "/yxStoreCouponIssue")
@PreAuthorize("@ss.hasAnyPermissions('admin','YXSTORECOUPONISSUE_ALL','YXSTORECOUPONISSUE_CREATE')")
// @PreAuthorize("@ss.hasAnyPermissions('admin','YXSTORECOUPONISSUE_ALL','YXSTORECOUPONISSUE_CREATE')")
@PreAuthorize("@ss.hasAnyPermissions('admin','YXSTORECOUPON_ALL','YXSTORECOUPON_EDIT')")
public ResponseEntity create(@Validated @RequestBody YxStoreCouponIssue resources){
if(resources.getTotalCount() > 0) {
resources.setRemainCount(resources.getTotalCount());

Loading…
Cancel
Save