关闭vivo的调试模式, 修改vivo打包的key

This commit is contained in:
zhl 2020-11-23 16:15:39 +08:00
parent 777d2a89e9
commit e571551e70
4 changed files with 14 additions and 12 deletions

View File

@ -6,4 +6,7 @@ key/publish_key
key store pass: 7654321Kingsome_ key store pass: 7654321Kingsome_
key alias: release key alias: release
key pass: 7654321Kingsome_ key pass: 7654321Kingsome_
vivo 使用vivo的alias
oppo 使用oppo
``` ```

View File

@ -18,7 +18,7 @@ public class JCApplication extends Application {
super.onCreate(); super.onCreate();
Log.i("JCApplication", "JCApplication onCreate"); Log.i("JCApplication", "JCApplication onCreate");
String appId = this.getString(R.string.app_id); String appId = this.getString(R.string.app_id);
VivoUnionSDK.initSdk(this, appId, true); VivoUnionSDK.initSdk(this, appId, false);
/** /**
* 掉单注册接口 需要接入掉单补单处理的一定要加 * 掉单注册接口 需要接入掉单补单处理的一定要加

View File

@ -282,24 +282,23 @@ public class MainActivity extends Activity {
Log.i(TAG, "receive pay: " + message); Log.i(TAG, "receive pay: " + message);
try { try {
JSONObject jsonObject = new JSONObject(message); JSONObject jsonObject = new JSONObject(message);
String cpOrderId = jsonObject.getString("orderid"); cpPayOrderNumber = jsonObject.getString("cpOrderNumber");
String productCode = jsonObject.getString("goodid"); cpOrderAmount = jsonObject.getString("orderAmount");
int count = jsonObject.getInt("count"); String notifyUrl = jsonObject.getString("notifyUrl");
String money = jsonObject.getString("money"); // 未传 String productName = jsonObject.getString("productName");
String notifyUrl = jsonObject.getString("notifyUrl"); // 未传 String productDesc = jsonObject.getString("productDesc");
String productName = jsonObject.getString("productName"); // 未传 String sign = jsonObject.getString("vivoSignature");
String productDesc = jsonObject.getString("productDesc"); //未传 String extuid = jsonObject.getString("extuid");
String sign = jsonObject.getString("sign"); // 未传
//TODO: 平台的支付 //TODO: 平台的支付
VivoPayInfo vivoPayInfo = new VivoPayInfo.Builder() VivoPayInfo vivoPayInfo = new VivoPayInfo.Builder()
.setAppId(appId) .setAppId(appId)
.setCpOrderNo(cpOrderId) .setCpOrderNo(cpPayOrderNumber)
.setNotifyUrl(notifyUrl) .setNotifyUrl(notifyUrl)
.setOrderAmount(money) .setOrderAmount(cpOrderAmount)
.setProductName(productName) .setProductName(productName)
.setProductDesc(productDesc) .setProductDesc(productDesc)
.setVivoSignature(sign) .setVivoSignature(sign)
.setExtUid(mUid) .setExtUid(extuid)
.build(); .build();
VivoUnionHelper.payV2(this, vivoPayInfo, mVivoPayCallback); VivoUnionHelper.payV2(this, vivoPayInfo, mVivoPayCallback);
} catch (JSONException e) { } catch (JSONException e) {

Binary file not shown.