关闭vivo的调试模式, 修改vivo打包的key
This commit is contained in:
parent
777d2a89e9
commit
e571551e70
@ -6,4 +6,7 @@ key/publish_key
|
||||
key store pass: 7654321Kingsome_
|
||||
key alias: release
|
||||
key pass: 7654321Kingsome_
|
||||
|
||||
vivo 使用vivo的alias
|
||||
oppo 使用oppo
|
||||
```
|
||||
|
@ -18,7 +18,7 @@ public class JCApplication extends Application {
|
||||
super.onCreate();
|
||||
Log.i("JCApplication", "JCApplication onCreate");
|
||||
String appId = this.getString(R.string.app_id);
|
||||
VivoUnionSDK.initSdk(this, appId, true);
|
||||
VivoUnionSDK.initSdk(this, appId, false);
|
||||
|
||||
/**
|
||||
* 掉单注册接口 需要接入掉单补单处理的一定要加
|
||||
|
@ -282,24 +282,23 @@ public class MainActivity extends Activity {
|
||||
Log.i(TAG, "receive pay: " + message);
|
||||
try {
|
||||
JSONObject jsonObject = new JSONObject(message);
|
||||
String cpOrderId = jsonObject.getString("orderid");
|
||||
String productCode = jsonObject.getString("goodid");
|
||||
int count = jsonObject.getInt("count");
|
||||
String money = jsonObject.getString("money"); // 未传
|
||||
String notifyUrl = jsonObject.getString("notifyUrl"); // 未传
|
||||
String productName = jsonObject.getString("productName"); // 未传
|
||||
String productDesc = jsonObject.getString("productDesc"); //未传
|
||||
String sign = jsonObject.getString("sign"); // 未传
|
||||
cpPayOrderNumber = jsonObject.getString("cpOrderNumber");
|
||||
cpOrderAmount = jsonObject.getString("orderAmount");
|
||||
String notifyUrl = jsonObject.getString("notifyUrl");
|
||||
String productName = jsonObject.getString("productName");
|
||||
String productDesc = jsonObject.getString("productDesc");
|
||||
String sign = jsonObject.getString("vivoSignature");
|
||||
String extuid = jsonObject.getString("extuid");
|
||||
//TODO: 平台的支付
|
||||
VivoPayInfo vivoPayInfo = new VivoPayInfo.Builder()
|
||||
.setAppId(appId)
|
||||
.setCpOrderNo(cpOrderId)
|
||||
.setCpOrderNo(cpPayOrderNumber)
|
||||
.setNotifyUrl(notifyUrl)
|
||||
.setOrderAmount(money)
|
||||
.setOrderAmount(cpOrderAmount)
|
||||
.setProductName(productName)
|
||||
.setProductDesc(productDesc)
|
||||
.setVivoSignature(sign)
|
||||
.setExtUid(mUid)
|
||||
.setExtUid(extuid)
|
||||
.build();
|
||||
VivoUnionHelper.payV2(this, vivoPayInfo, mVivoPayCallback);
|
||||
} catch (JSONException e) {
|
||||
|
BIN
key/publish_key
BIN
key/publish_key
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user