|
@@ -1,6 +1,5 @@
|
|
package com.yonge.cooleshow.student.controller;
|
|
package com.yonge.cooleshow.student.controller;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.alipay.api.response.AlipaySystemOauthTokenResponse;
|
|
import com.alipay.api.response.AlipaySystemOauthTokenResponse;
|
|
import com.huifu.adapay.core.AdapayCore;
|
|
import com.huifu.adapay.core.AdapayCore;
|
|
import com.huifu.adapay.core.util.StringUtil;
|
|
import com.huifu.adapay.core.util.StringUtil;
|
|
@@ -19,6 +18,7 @@ import org.springframework.http.HttpStatus;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
+import java.util.HashMap;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -51,13 +51,13 @@ public class PaymentController extends BaseController {
|
|
return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
}
|
|
}
|
|
HttpResponseResult<Map<String, String>> responseResult = paymentSdk.getOpenId(js_code);
|
|
HttpResponseResult<Map<String, String>> responseResult = paymentSdk.getOpenId(js_code);
|
|
- if (responseResult.getStatus()) {
|
|
|
|
|
|
+ /*if (responseResult.getStatus()) {
|
|
Map<String, String> data = responseResult.getData();
|
|
Map<String, String> data = responseResult.getData();
|
|
//绑定到用户表
|
|
//绑定到用户表
|
|
user.setWxOpenid(data.get("openid"));
|
|
user.setWxOpenid(data.get("openid"));
|
|
log.info("绑定用户openid,param is {}", JSONObject.toJSONString(user));
|
|
log.info("绑定用户openid,param is {}", JSONObject.toJSONString(user));
|
|
sysUserFeignService.bindOpenId(user);
|
|
sysUserFeignService.bindOpenId(user);
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
return responseResult;
|
|
return responseResult;
|
|
}
|
|
}
|
|
|
|
|