修改支付宝小程序授权
This commit is contained in:
parent
50e5af7b22
commit
e51e1f748d
@ -76,8 +76,8 @@ public class XhpcChargeOrderController extends BaseController {
|
||||
*/
|
||||
@GetMapping("/startUp")
|
||||
public AjaxResult startUp(HttpServletRequest request, @RequestParam Long userId, @RequestParam String serialNumber, @RequestParam Integer type){
|
||||
logger.info("<<<<<<<<<<<<<<<<<<<<<<<<启动充电>>>>>>>>>>>>>>>>>");
|
||||
logger.info("<<<<<<<<<<<<<<<<<<<<<<<<启动充电>>>>>>>>>>>>>>>>>");
|
||||
logger.info("<<<<<<<<<<<<<<<<<<<<<<<<启动充电>>>>>>>>>>>>>>>>>"+serialNumber);
|
||||
logger.info("<<<<<<<<<<<<<<<<<<<<<<<<启动充电>>>>>>>>>>>>>>>>>"+serialNumber);
|
||||
return iXhpcChargeOrderService.startUp(request,userId, serialNumber, type);
|
||||
}
|
||||
|
||||
|
||||
@ -199,12 +199,13 @@ public class XhpcChargeOrderServiceImpl extends BaseService implements IXhpcChar
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
logger.info("<<<<<<<<<<<<<<<<<<<<<<<<无效的终端编号>>>>"+terminalSerialNumber+">>>>>>>>>>>>>"+tenantId);
|
||||
//终端信息
|
||||
XhpcTerminal xhpcTerminal = xhpcChargeOrderMapper.getXhpcTerminalSerialNumber(terminalSerialNumber,tenantId);
|
||||
if (xhpcTerminal == null || xhpcTerminal.getTerminalId() == null || xhpcTerminal.getChargingPileId() == null || xhpcTerminal.getPileSerialNumber() == null) {
|
||||
return AjaxResult.error(1104, "无效的终端编号");
|
||||
}
|
||||
logger.info("<<<<<<<<<<<<<<<<<<<<<<<<无效的终端编号>>>>666666>>>>>>>>>>>>>");
|
||||
//余额
|
||||
String balance = new BigDecimal(userMessage.get("balance").toString()).multiply(new BigDecimal(100)).toString();
|
||||
|
||||
|
||||
@ -245,8 +245,8 @@ public class XhpcAppUserController extends BaseController {
|
||||
* 支付宝授权
|
||||
*/
|
||||
@ApiOperation("支付宝授权")
|
||||
@PostMapping("/alipayEmpowerYu")
|
||||
public AjaxResult alipayEmpowerYu(@RequestParam String code,String tenantId) throws Exception {
|
||||
@PostMapping("/alipayEmpower")
|
||||
public AjaxResult alipayEmpower(@RequestParam String code,String tenantId) throws Exception {
|
||||
if("".equals(tenantId) || null==tenantId){
|
||||
tenantId="000000";
|
||||
}
|
||||
@ -296,8 +296,8 @@ public class XhpcAppUserController extends BaseController {
|
||||
* 支付宝授权
|
||||
*/
|
||||
@ApiOperation("支付宝授权")
|
||||
@PostMapping("/alipayEmpower")
|
||||
public AjaxResult alipayEmpower(@RequestParam String code) throws Exception {
|
||||
@PostMapping("/alipayEmpowerYu")
|
||||
public AjaxResult alipayEmpowerYu(@RequestParam String code) throws Exception {
|
||||
|
||||
/** 初始化 **/
|
||||
CertAlipayRequest certAlipayRequest = new CertAlipayRequest();
|
||||
|
||||
@ -190,6 +190,7 @@ public class XhpcAppUserServiceImpl extends BaseService implements IXhpcAppUserU
|
||||
String type = StringUtils.valueOf(map.get("type"));
|
||||
String tenantId = StringUtils.valueOf(map.get("tenantId"));
|
||||
logger.info("<<<<<<<<<<code>>>>>>>>>>>>"+code);
|
||||
logger.info("<<<<<<<<<<tenantId>>>>>>>>>>>>"+tenantId);
|
||||
if("18123374652".equals(phone) && "123456".equals(code)){
|
||||
if("1".equals(type)){
|
||||
return appLogin(phone, "1", "ot6ul4nlSC5ZZOC4rTLS5hedFTGk", tenantId);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user