|
|
@@ -22,7 +22,6 @@ import com.cyksj.mapper.UserMapper;
|
|
|
import com.cyksj.mapper.channel.UserPayEquipmentAvailableBenefitsMapper;
|
|
|
import com.cyksj.mapper.market.task.UserBindPhoneMapper;
|
|
|
import com.cyksj.model.dto.AliPayParams;
|
|
|
-import com.cyksj.model.dto.DefaultShopConfig;
|
|
|
import com.cyksj.model.dto.H5JsPayParams;
|
|
|
import com.cyksj.model.entity.*;
|
|
|
import com.cyksj.model.manage.views.OrderDonView;
|
|
|
@@ -50,7 +49,10 @@ import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.OutputStream;
|
|
|
-import java.util.*;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+import java.util.Set;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
@@ -428,24 +430,6 @@ public class OrderController {
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 前端页面需要展示默认支付方式
|
|
|
- */
|
|
|
- @GetMapping("/get/payMethod")
|
|
|
- public Result<List<String>> getPayMethod() {
|
|
|
- SysConfig sysConfig = sysConfigService.getOne(Wrappers.lambdaQuery(SysConfig.class)
|
|
|
- .eq(SysConfig::getSysKey, Constant.SYS_DEFAULT_SHOP_KEY).last("limit 1"));
|
|
|
- if (sysConfig != null) {
|
|
|
- try {
|
|
|
- DefaultShopConfig defaultShopConfig = Jsons.parseObject(sysConfig.getSysValue(), DefaultShopConfig.class);
|
|
|
- return GatewayResponse.SUCCESS.newBuilder().toResult(defaultShopConfig.getPayMethod());
|
|
|
- } catch (Exception e) {
|
|
|
- return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
- }
|
|
|
- }
|
|
|
- return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 是否绑定了邮箱或手机号
|
|
|
*/
|