Commit 4383580a by pye52

Merge branch 'develop'

parents 472ba581 bf416e36
......@@ -14,7 +14,6 @@ import static com.bgycc.smartcanteen.utils.SmartCanteenUtils.TAG;
public class WifiConfigCommandWorker extends CommandWorker {
private static final long DEFAULT_DELAY = 3000;
private static final long POLLING_DELAY = 200;
private CommandWifiConfig wifiConfig;
public WifiConfigCommandWorker(@NonNull Context context, @NonNull WorkerParameters workerParams) {
......@@ -61,8 +60,7 @@ public class WifiConfigCommandWorker extends CommandWorker {
try {
NetworkUtils.connect(ssid, identity, pwd, type);
// 轮询检查wifi是否链接成功
for (int i = 0; i < 50; i++) {
Thread.sleep(POLLING_DELAY);
for (int i = 0; i < 20; i++) {
WifiInfo info = NetworkUtils.getWifiInfo();
if (info == null || info.getIpAddress() == 0) {
continue;
......
......@@ -176,7 +176,7 @@ public class PayOfflineViewModel extends ViewModel {
private class RequestRunnable implements Runnable {
// 离线支付每一次上传的订单量(若上传数据量过大服务器会拒绝)
private static final int PAY_OFFLINE_PER_LIMIT = 10;
private static final int PAY_OFFLINE_PER_LIMIT = 20;
@Override
public void run() {
long currentTime = System.currentTimeMillis();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment