mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
支付宝登录
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package com.jsowell.api.uniapp;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
@@ -81,12 +80,12 @@ public class MemberController extends BaseController {
|
||||
*/
|
||||
@PostMapping("/memberRegisterAndLogin")
|
||||
public RestApiResponse<?> memberRegisterAndLogin(HttpServletRequest request, @RequestBody MemberRegisterAndLoginDTO dto) {
|
||||
logger.info("会员登录注册接口 param:{}", JSON.toJSONString(dto));
|
||||
logger.info("会员登录注册接口 param:{}, user-agent:{}", JSON.toJSONString(dto), request.getHeader("user-agent"));
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
String appId = request.getHeader("appId");
|
||||
if (StringUtils.isNotBlank(appId)) {
|
||||
String firstLevelMerchantId = pileMerchantInfoService.getFirstLevelMerchantIdByAppId(appId);
|
||||
String firstLevelMerchantId = pileMerchantInfoService.getFirstLevelMerchantIdByWxAppId(appId);
|
||||
if (StringUtils.isNotBlank(firstLevelMerchantId)) {
|
||||
dto.setMerchantId(firstLevelMerchantId);
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ public class PersonPileController extends BaseController {
|
||||
try {
|
||||
String appId = request.getHeader("appId");
|
||||
if (StringUtils.isNotBlank(appId)) {
|
||||
String firstLevelMerchantId = pileMerchantInfoService.getFirstLevelMerchantIdByAppId(appId);
|
||||
String firstLevelMerchantId = pileMerchantInfoService.getFirstLevelMerchantIdByWxAppId(appId);
|
||||
if (StringUtils.isNotBlank(firstLevelMerchantId)) {
|
||||
dto.setMerchantId(firstLevelMerchantId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user