|
|
@@ -232,7 +232,7 @@ public class ProductPathActivity extends Activity {
|
|
|
return source.length() < 1 ? dest.subSequence(dstart, dend): "";
|
|
|
}
|
|
|
} });
|
|
|
- if(barcode.length() >= 73)
|
|
|
+ if(barcode.substring(0, 4).equals("http"))
|
|
|
{
|
|
|
String[] parts = barcode.split("-", 2); // 第二个参数限制分割后的数组长度,这里为2
|
|
|
|
|
|
@@ -300,7 +300,7 @@ public class ProductPathActivity extends Activity {
|
|
|
return source.length() < 1 ? dest.subSequence(dstart, dend) : "";
|
|
|
}
|
|
|
} });
|
|
|
- if(barcode.length() >= 73)
|
|
|
+ if(barcode.substring(0, 4).equals("http"))
|
|
|
{
|
|
|
String[] parts = barcode.split("-", 2); // 第二个参数限制分割后的数组长度,这里为2
|
|
|
|
|
|
@@ -627,7 +627,7 @@ public class ProductPathActivity extends Activity {
|
|
|
return source.length() < 1 ? dest.subSequence(dstart, dend) : "";
|
|
|
}
|
|
|
} });
|
|
|
- if(barcode.length() >= 73)
|
|
|
+ if(barcode.substring(0, 4).equals("http"))
|
|
|
{
|
|
|
String[] parts = barcode.split("-", 2); // 第二个参数限制分割后的数组长度,这里为2
|
|
|
|