|
@@ -1208,7 +1208,7 @@ class ApiController extends BaseController
|
|
|
|
|
|
// 查询是否答过题
|
|
// 查询是否答过题
|
|
$var1 = DB::connection('mysql_fwe10')->table('uf_dtqk')
|
|
$var1 = DB::connection('mysql_fwe10')->table('uf_dtqk')
|
|
- ->select('id')
|
|
|
|
|
|
+ ->select('id,df')
|
|
->where('is_delete',0)
|
|
->where('is_delete',0)
|
|
->where('sjzt',$params['sjid'])
|
|
->where('sjzt',$params['sjid'])
|
|
->where('ryid',$params['gh'])
|
|
->where('ryid',$params['gh'])
|
|
@@ -1223,7 +1223,7 @@ class ApiController extends BaseController
|
|
$result['data'] = $res;
|
|
$result['data'] = $res;
|
|
$result['msg'] = ApiEnum::RETURN_SUCCESS;
|
|
$result['msg'] = ApiEnum::RETURN_SUCCESS;
|
|
}else{
|
|
}else{
|
|
- $result['msg'] = "已经答过此试卷,请勿重复答题。";
|
|
|
|
|
|
+ $result['msg'] = "已经答过此试卷,得分:".$var1[0]->df."分。";
|
|
}
|
|
}
|
|
return self::successResponse($result);
|
|
return self::successResponse($result);
|
|
}
|
|
}
|
|
@@ -1237,7 +1237,7 @@ class ApiController extends BaseController
|
|
$list = $params['answer'];
|
|
$list = $params['answer'];
|
|
// 查询是否答过题
|
|
// 查询是否答过题
|
|
$var1 = DB::connection('mysql_fwe10')->table('uf_dtqk')
|
|
$var1 = DB::connection('mysql_fwe10')->table('uf_dtqk')
|
|
- ->select('id')
|
|
|
|
|
|
+ ->select('id,df')
|
|
->where('is_delete',0)
|
|
->where('is_delete',0)
|
|
->where('sjzt',$params['sjid'])
|
|
->where('sjzt',$params['sjid'])
|
|
->where('ryid',$params['gh'])
|
|
->where('ryid',$params['gh'])
|