mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-24 04:55:08 +08:00
update
This commit is contained in:
@@ -11,6 +11,7 @@ import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.common.util.StringUtils;
|
||||
import com.jsowell.pile.dto.*;
|
||||
import com.jsowell.pile.service.IMemberBasicInfoService;
|
||||
import com.jsowell.pile.vo.base.StationInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.OrderVO;
|
||||
import com.jsowell.pile.vo.uniapp.UniAppOrderDetailVO;
|
||||
@@ -43,6 +44,9 @@ public class OrderController extends BaseController {
|
||||
@Autowired
|
||||
private WxAppletRemoteService wxAppletRemoteService;
|
||||
|
||||
@Autowired
|
||||
private IMemberBasicInfoService memberBasicInfoService;
|
||||
|
||||
/**
|
||||
* 生成订单
|
||||
* http://localhost:8080/uniapp/order/generateOrder
|
||||
@@ -234,10 +238,12 @@ public class OrderController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/uniAppStartChargingSendMsg")
|
||||
public RestApiResponse<?> uniAppStartChargingSendMsg(@RequestBody WechatSendMsgDTO dto) {
|
||||
public RestApiResponse<?> uniAppStartChargingSendMsg(HttpServletRequest request, @RequestBody WechatSendMsgDTO dto) {
|
||||
logger.info("微信小程序发送启动充电推送消息 param:{}", JSONObject.toJSONString(dto));
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
String memberId = getMemberIdByAuthorization(request);
|
||||
dto.setMemberId(memberId);
|
||||
Map<String, String> resultMap = wxAppletRemoteService.startChargingSendMsg(dto);
|
||||
response = new RestApiResponse<>(resultMap);
|
||||
} catch (Exception e){
|
||||
|
||||
Reference in New Issue
Block a user