| | |
| | | import androidx.work.Worker |
| | | import androidx.work.WorkerParameters |
| | | import com.anyun.exam.lib.AYSdk |
| | | import com.anyun.exam.lib.MyLog |
| | | import org.json.JSONException |
| | | import org.json.JSONObject |
| | | import safeluck.drive.evaluation.DB.Constant |
| | |
| | | val TAG:String = "ExamStatusOutWorker" |
| | | override fun doWork(): Result { |
| | | val examType =WorkRoomDataBase.getWorkRoomDataBase(applicationContext).examStatusDao.startExamInt; |
| | | Log.i(TAG,"查到的考试type="+examType) |
| | | MyLog.i("查到的考试type="+examType) |
| | | val data = Data.Builder().putInt(Constant.EXAM_STATUS_TYPE,examType).build() |
| | | if (examType != safeluck.drive.evaluation.Constant.NONE_BEEN_START_EXAM) { |
| | | try { |