|
|
@ -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) {
|
|
|
|