class="lines-num lines-num-old">
34
|
android:layout_width="0dp"
|
|
|
35
|
android:layout_height="40dp"
|
|
|
36
|
android:layout_marginTop="16dp"
|
|
|
37
|
android:gravity="center"
|
|
|
38
|
android:text="重输"
|
|
|
39
|
android:background="@drawable/bg_ececec_radius20"
|
|
|
40
|
android:textColor="@color/black"
|
|
|
41
|
android:textSize="16sp"
|
|
|
42
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
43
|
app:layout_constraintTop_toBottomOf="@+id/tvTitle" />
|
|
|
44
|
|
|
|
45
|
<TextView
|
|
|
46
|
android:background="@drawable/bg_3ec34c_radius20"
|
|
|
47
|
android:layout_marginStart="16dp"
|
|
|
48
|
android:id="@+id/tvCorrect"
|
|
|
49
|
android:layout_width="0dp"
|
|
|
50
|
android:layout_height="40dp"
|
|
|
51
|
android:gravity="center"
|
|
|
52
|
android:text="正确"
|
|
|
53
|
android:textColor="@color/white"
|
|
|
54
|
android:textSize="16sp"
|
|
|
55
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
56
|
app:layout_constraintStart_toEndOf="@+id/tvRetransmit"
|
|
|
57
|
app:layout_constraintTop_toTopOf="@+id/tvRetransmit" />
|
|
|
58
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
59
|
|
|
|
60
|
</LinearLayout>
|
|
|
@ -0,0 +1,18 @@
|
|
|
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
2
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
3
|
android:layout_width="match_parent"
|
|
|
4
|
android:layout_height="wrap_content"
|
|
|
5
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
6
|
<TextView
|
|
|
7
|
android:id="@+id/tvLicensePlate"
|
|
|
8
|
android:layout_marginBottom="8dp"
|
|
|
9
|
android:background="@drawable/bg_white_radius4"
|
|
|
10
|
android:padding="10dp"
|
|
|
11
|
android:layout_width="wrap_content"
|
|
|
12
|
android:layout_height="wrap_content"
|
|
|
13
|
tools:text="京AAL0207"
|
|
|
14
|
android:textColor="#ff9b9b9b"
|
|
|
15
|
android:textSize="14sp"
|
|
|
16
|
/>
|
|
|
17
|
|
|
|
18
|
</LinearLayout>
|
|
|
@ -1279,6 +1279,18 @@ public final class CaptureActivity extends Activity implements SurfaceHolder.Cal
|
|
1279
|
1279
|
intent1800.putExtra(ChargingConstants.ORDERID, pileId);
|
|
1280
|
1280
|
startActivity(intent1800);
|
|
1281
|
1281
|
break;
|
|
|
1282
|
|
|
|
1283
|
case "1000":
|
|
|
1284
|
|
|
|
1285
|
String data1000 = JsonUtils.getKeyResult(response, "data");
|
|
|
1286
|
String pileId0 = JsonUtils.getKeyResult(data1000, "pileId");
|
|
|
1287
|
Intent intent1000 = new Intent();
|
|
|
1288
|
|
|
|
1289
|
intent1000.setClassName("com.electric.chargingpile",
|
|
|
1290
|
"com.electric.chargingpile.activity.ChargingPileActivity");
|
|
|
1291
|
intent1000.putExtra(ChargingConstants.ORDERID, pileId0);
|
|
|
1292
|
startActivity(intent1000);
|
|
|
1293
|
break;
|
|
1282
|
1294
|
default:
|
|
1283
|
1295
|
new Handler().postDelayed(new Runnable() {
|
|
1284
|
1296
|
public void run() {
|
|
|
@ -1311,6 +1323,10 @@ public final class CaptureActivity extends Activity implements SurfaceHolder.Cal
|
|
1311
|
1323
|
}
|
|
1312
|
1324
|
|
|
1313
|
1325
|
private void startCharging(String result) {
|
|
|
1326
|
//http://h5.towatt.com/weixin/pro/pay/help.html?P00000178
|
|
|
1327
|
String[] resultSplit = result.split("\\?");
|
|
|
1328
|
String chargingPile = resultSplit[resultSplit.length - 1];
|
|
|
1329
|
|
|
1314
|
1330
|
OkHttpUtils.get().url(UrlConstants.START_CHARGING_URL)
|
|
1315
|
1331
|
.addParams(ChargingConstants.FLAG, numType)
|
|
1316
|
1332
|
.addParams(ChargingConstants.URL, URLEncoder.encode(result))
|
|
|
@ -1,8 +1,8 @@
|
|
1
|
1
|
package com.google.zxing.client.android.constant;
|
|
2
|
2
|
|
|
3
|
3
|
public interface UrlConstants {
|
|
4
|
|
String HOST_URL = "http://cdz.evcharge.cc/zhannew/basic/web/index.php/";
|
|
5
|
|
// String HOST_URL = "http://59.110.68.162/zhannew/basic/web/index.php/"; //测试链接
|
|
|
4
|
// String HOST_URL = "http://cdz.evcharge.cc/zhannew/basic/web/index.php/";
|
|
|
5
|
String HOST_URL = "http://59.110.68.162/zhannew/basic/web/index.php/"; //测试链接
|
|
6
|
6
|
|
|
7
|
7
|
String USER_CHARGING_CHECK_URL = HOST_URL + "api/charge/check-user";
|
|
8
|
8
|
String START_CHARGING_URL = HOST_URL + "api/charge/start";
|