diff --git a/poster.jpg b/poster.jpg
new file mode 100644
index 00000000..7687578a
Binary files /dev/null and b/poster.jpg differ
diff --git a/simsunb.ttf b/simsunb.ttf
new file mode 100644
index 00000000..1c14f7fa
Binary files /dev/null and b/simsunb.ttf differ
diff --git a/yudao-server/src/main/resources/application-local.yaml b/yudao-server/src/main/resources/application-local.yaml
index f620d1ef..eaf1860f 100644
--- a/yudao-server/src/main/resources/application-local.yaml
+++ b/yudao-server/src/main/resources/application-local.yaml
@@ -244,7 +244,7 @@ dubbo:
bxg:
shop:
# API_URL: http://192.168.10.113:48080/bxgApp
- API_URL: https://8d9e-27-19-79-216.jp.ngrok.io
+ API_URL: https://5361-27-19-79-51.jp.ngrok.io
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
diff --git a/zsw-bxg/pom.xml b/zsw-bxg/pom.xml
index 463454cd..f7930a76 100644
--- a/zsw-bxg/pom.xml
+++ b/zsw-bxg/pom.xml
@@ -164,6 +164,11 @@
fastjson
1.2.50
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.12
+
diff --git a/zsw-bxg/src/main/java/co/yixiang/app/modules/banner/Banner.java b/zsw-bxg/src/main/java/co/yixiang/app/modules/banner/Banner.java
new file mode 100644
index 00000000..f266183e
--- /dev/null
+++ b/zsw-bxg/src/main/java/co/yixiang/app/modules/banner/Banner.java
@@ -0,0 +1,18 @@
+package co.yixiang.app.modules.banner;
+
+import lombok.Data;
+
+@Data
+public class Banner {
+ //首页标题
+ private String name;
+ //id
+ private String id;
+ //排序
+ private String sort;
+ //url链接
+ private String url;
+ //type
+ private Integer type;
+
+}
diff --git a/zsw-bxg/src/main/java/co/yixiang/app/modules/entry/rest/AppStoreEntryController.java b/zsw-bxg/src/main/java/co/yixiang/app/modules/entry/rest/AppStoreEntryController.java
index f93abd9f..27e331c9 100644
--- a/zsw-bxg/src/main/java/co/yixiang/app/modules/entry/rest/AppStoreEntryController.java
+++ b/zsw-bxg/src/main/java/co/yixiang/app/modules/entry/rest/AppStoreEntryController.java
@@ -36,11 +36,23 @@ public class AppStoreEntryController {
* 查询词条讲解
*/
@AnonymousAccess
- @GetMapping("/entry{id}")
- @ApiOperation(value = "词条查询",notes = "词条")
+ @GetMapping("/entry/{id}")
+ @ApiOperation(value = "词条id查询词条",notes = "词条")
public ApiResult getYxEntry(@PathVariable int id){
EntryDTO entryDTO=yxStoreEntryService.getEntry(id);
return ApiResult.ok(entryDTO);
}
+ /**
+ * 查询词条讲解
+ */
+ @AnonymousAccess
+ @GetMapping("/entryByName")
+ @ApiOperation(value = "根据词条名查询词条",notes = "词条")
+ public ApiResult getEntryByName(String name){
+
+ EntryDTO entryDTO=yxStoreEntryService.getEntryByName(name);
+ return ApiResult.ok(entryDTO);
+ }
+
}
\ No newline at end of file
diff --git a/zsw-bxg/src/main/java/co/yixiang/app/modules/evaluation/rest/AppStoreEvaluationController.java b/zsw-bxg/src/main/java/co/yixiang/app/modules/evaluation/rest/AppStoreEvaluationController.java
index 94a30601..b8f28412 100644
--- a/zsw-bxg/src/main/java/co/yixiang/app/modules/evaluation/rest/AppStoreEvaluationController.java
+++ b/zsw-bxg/src/main/java/co/yixiang/app/modules/evaluation/rest/AppStoreEvaluationController.java
@@ -66,7 +66,8 @@ public class AppStoreEvaluationController {
@GetMapping("/evaluation/{id}")
@ApiOperation(value = "评测查询",notes = "产品评测")
public ApiResult getYxEvaluation(@PathVariable int id){
- EvaluationDTO evaluationDTO=yxEvaluationService.getEvaluationById(id);
+ long uid = LocalUser.getUidByToken();
+ EvaluationDTO evaluationDTO=yxEvaluationService.getEvaluationById(uid,id);
return ApiResult.ok(evaluationDTO);
}
diff --git a/zsw-bxg/src/main/java/co/yixiang/app/modules/order/rest/AppStoreOrderController.java b/zsw-bxg/src/main/java/co/yixiang/app/modules/order/rest/AppStoreOrderController.java
index ee5b0dc3..19a9ff4d 100644
--- a/zsw-bxg/src/main/java/co/yixiang/app/modules/order/rest/AppStoreOrderController.java
+++ b/zsw-bxg/src/main/java/co/yixiang/app/modules/order/rest/AppStoreOrderController.java
@@ -222,10 +222,6 @@ public class AppStoreOrderController {
orderSupplyService.goPay(map, orderId, uid, param.getPaytype(), param.getFrom(), orderDTO);
- //这里判断是否支付成功
- if (map!=null){
- sendMsgService.inform(Long.valueOf(orderId));
- }
return ApiResult.ok(map);
}
@@ -237,7 +233,7 @@ public class AppStoreOrderController {
@AuthCheck
@GetMapping("/order/list")
@ApiImplicitParams({
- @ApiImplicitParam(name = "type", value = "商品状态,-1全部 默认为0未支付 1待发货 2待收货 3待评价 4已完成 5退款中 6已退款 7退款",
+ @ApiImplicitParam(name = "type", value = "商品状态,-1全部 默认为0未支付 1待发货 2待收货 3待评价 4已完成 5退款中 6已退款 7退款 8已取消",
paramType = "query", dataType = "int",dataTypeClass = Integer.class),
@ApiImplicitParam(name = "page", value = "页码,默认为1", paramType = "query", dataType = "int",dataTypeClass = Integer.class),
@ApiImplicitParam(name = "limit", value = "页大小,默认为10", paramType = "query", dataType = "int",dataTypeClass = Integer.class)
@@ -382,7 +378,6 @@ public class AppStoreOrderController {
list.add("收到商品损坏了");
list.add("未按预定时间发货");
list.add("其它原因");
-
return ApiResult.ok(list);
}
diff --git a/zsw-bxg/src/main/java/co/yixiang/app/modules/user/rest/LetterAppUserController.java b/zsw-bxg/src/main/java/co/yixiang/app/modules/user/rest/LetterAppUserController.java
index 5f2fe42a..271efb28 100644
--- a/zsw-bxg/src/main/java/co/yixiang/app/modules/user/rest/LetterAppUserController.java
+++ b/zsw-bxg/src/main/java/co/yixiang/app/modules/user/rest/LetterAppUserController.java
@@ -18,7 +18,7 @@ import co.yixiang.logging.aop.log.AppLog;
import co.yixiang.constant.ShopConstants;
import co.yixiang.enums.BillInfoEnum;
import co.yixiang.modules.evaluation.service.YxEvaluationRelationService;
-import co.yixiang.modules.evaluation.service.vo.YxStoreEvaluationRelationQueryVo;
+import co.yixiang.modules.evaluation.vo.YxStoreEvaluationRelationQueryVo;
import co.yixiang.modules.order.service.YxStoreOrderService;
import co.yixiang.modules.order.vo.UserOrderCountVo;
import co.yixiang.modules.product.service.YxStoreProductRelationService;
@@ -31,6 +31,7 @@ import co.yixiang.modules.user.service.YxUserService;
import co.yixiang.modules.user.service.YxUserSignService;
import co.yixiang.modules.user.vo.SignVo;
import co.yixiang.modules.user.vo.YxUserQueryVo;
+import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Maps;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
@@ -40,12 +41,9 @@ import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
+import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@@ -98,8 +96,48 @@ public class LetterAppUserController {
return ApiResult.ok(map);
}
+ /**
+ * 获取各类轮播图
+ */
+ @GetMapping("/menu/banner/{type}")
+ @ApiOperation(value = "获取各种轮播图(0:首页 1:品牌馆 2:优惠券 3:活动专区)",notes = "获取轮播图")
+ public ApiResult