密钥对号默认值都改成0

main
Matthew 12 months ago
parent 1bd5ce9679
commit e96661936d

@ -132,7 +132,7 @@ public class CertActivity extends AppCompatActivity {
@Override @Override
public void onClick(View view) { public void onClick(View view) {
Intent intent = new Intent(); Intent intent = new Intent();
intent.putExtra("index", 1); intent.putExtra("index", 0);
intent.putExtra("action", ACTION_CERT_REQ_BATCH); intent.putExtra("action", ACTION_CERT_REQ_BATCH);
intent.putExtra("start", 701); intent.putExtra("start", 701);
intent.putExtra("end", 710); intent.putExtra("end", 710);
@ -224,7 +224,7 @@ public class CertActivity extends AppCompatActivity {
if (!parentPath.exists()) { if (!parentPath.exists()) {
parentPath.mkdirs(); parentPath.mkdirs();
} }
int index = intent.getIntExtra("index", 1); int index = intent.getIntExtra("index", 0);
boolean res = MicroPhotoService.exportPublicKeyFile(index, path); boolean res = MicroPhotoService.exportPublicKeyFile(index, path);
if (res) { if (res) {
@ -239,7 +239,7 @@ public class CertActivity extends AppCompatActivity {
if (!parentPath.exists()) { if (!parentPath.exists()) {
parentPath.mkdirs(); parentPath.mkdirs();
} }
int index = intent.getIntExtra("index", 1); int index = intent.getIntExtra("index", 0);
boolean res = MicroPhotoService.exportPrivateFile(index, path); boolean res = MicroPhotoService.exportPrivateFile(index, path);
if (res) { if (res) {

Loading…
Cancel
Save