generated from root/miduo_server
ohayoo,支付2
parent
cbc8fb356e
commit
28249da03d
|
@ -19,6 +19,7 @@ import java.util.TreeMap;
|
||||||
public class OhayooGetExternalController {
|
public class OhayooGetExternalController {
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(OhayooGetExternalController.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(OhayooGetExternalController.class);
|
||||||
|
|
||||||
|
private static String pay_key = "2e92cbb7faa7e37e0c5a38723b1d2acd";
|
||||||
private static Gson gson = new Gson();
|
private static Gson gson = new Gson();
|
||||||
@PostMapping(value = "/ohayooGetExternal")
|
@PostMapping(value = "/ohayooGetExternal")
|
||||||
public String ohayooGetExternal(HttpServletRequest request) throws Exception {
|
public String ohayooGetExternal(HttpServletRequest request) throws Exception {
|
||||||
|
@ -42,8 +43,7 @@ public class OhayooGetExternalController {
|
||||||
}
|
}
|
||||||
String externalOrder = builder.substring(0, builder.length() - 1);
|
String externalOrder = builder.substring(0, builder.length() - 1);
|
||||||
|
|
||||||
String payKey = OhayooRechargeController.publicKey;
|
String sign = MD5Util.encrypByMd5(pay_key + externalOrder + pay_key);
|
||||||
String sign = MD5Util.encrypByMd5(payKey + externalOrder + payKey);
|
|
||||||
treeMap.put("sign",sign);
|
treeMap.put("sign",sign);
|
||||||
|
|
||||||
//格式转换
|
//格式转换
|
||||||
|
|
Loading…
Reference in New Issue