| | |
| | | import android.widget.Toast; |
| | | |
| | | import com.anyun.basecommonlib.MyLog; |
| | | import com.anyun.exam.lib.AYSdk; |
| | | import com.google.gson.Gson; |
| | | |
| | | import org.json.JSONObject; |
| | | |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import java.util.concurrent.ExecutorService; |
| | | import java.util.concurrent.Executors; |
| | | import java.util.concurrent.ScheduledExecutorService; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | import okhttp3.ResponseBody; |
| | | import retrofit2.Call; |
| | | import retrofit2.Callback; |
| | | import retrofit2.Response; |
| | | import safeluck.drive.evaluation.Constant; |
| | | |
| | | import safeluck.drive.evaluation.app; |
| | | import safeluck.drive.evaluation.httpmodule.HttpCarRespBean; |
| | | import safeluck.drive.evaluation.httpmodule.HttpRequetBean; |
| | | import safeluck.drive.evaluation.httpmodule.HttpRoadMapRsp; |
| | | import safeluck.drive.evaluation.httpmodule.HttpYardRsp; |
| | | import safeluck.drive.evaluation.httpmodule.RetrofitCreator; |
| | | import safeluck.drive.evaluation.platformMessage.PlatFormConstant; |
| | | import safeluck.drive.evaluation.util.CThreadPoolExecutor; |
| | | |
| | | import safeluck.drive.evaluation.util.DataInitKt; |
| | | import safeluck.drive.evaluation.util.FileUtil; |
| | | |
| | | import static safeluck.drive.evaluation.util.DataInitKt.sendJudgeArgs; |
| | | |
| | |
| | | //需要延迟发送,因为前面有http请求 |
| | | executorService.schedule(()->{ |
| | | Log.i("AYJiaKao","延迟发送"); |
| | | if (DataInitKt.getSendmapAndVehi()){ |
| | | if (DataInitKt.getSendVehiSucc() && (DataInitKt.getSendMapSucc() || DataInitKt.getSendRoadMapSucc())){ |
| | | sendLightsAndExamStatus(); |
| | | }else{ |
| | | MyLog.i("地图或车模型存在发送失败的情况"); |
| | | MyLog.i(DataInitKt.getSendRoadMapSucc()?String.format("道路地图发送成功"):"道路地图发送失败"); |
| | | MyLog.i(DataInitKt.getSendMapSucc()?String.format("场地地图发送成功"):"场地地图发送失败"); |
| | | MyLog.i(DataInitKt.getSendVehiSucc()?String.format("车辆模型发送成功"):"车辆模型发送失败"); |
| | | Toast.makeText(app.getAppContext(), "地图或车模型不存在,请检查平台配置或手工配置", Toast.LENGTH_SHORT).show(); |
| | | } |
| | | },1, TimeUnit.SECONDS); |