|
@@ -37,16 +37,16 @@ class QuestionController extends AbstractController
|
|
$jigou_id = $params['jigou_id'];
|
|
$jigou_id = $params['jigou_id'];
|
|
$jigou_info = Db::table('vote_jigou')->where('id',$jigou_id)->first();
|
|
$jigou_info = Db::table('vote_jigou')->where('id',$jigou_id)->first();
|
|
if(!$jigou_info){
|
|
if(!$jigou_info){
|
|
- return AppResult::error('不存在的机构');
|
|
|
|
|
|
+ return AppResult::error('不存在的工会');
|
|
}
|
|
}
|
|
|
|
|
|
$times = site('bind_jigou_times');
|
|
$times = site('bind_jigou_times');
|
|
if($user['bind_jigou_times'] >= $times){
|
|
if($user['bind_jigou_times'] >= $times){
|
|
- return AppResult::error('最多修改绑定机构'.$times.'次');
|
|
|
|
|
|
+ return AppResult::error('最多修改绑定工会'.$times.'次');
|
|
}
|
|
}
|
|
|
|
|
|
if($user['bind_jigou_id'] == $jigou_id){
|
|
if($user['bind_jigou_id'] == $jigou_id){
|
|
- return AppResult::error('绑定机构没有改变');
|
|
|
|
|
|
+ return AppResult::error('绑定工会没有改变');
|
|
}
|
|
}
|
|
|
|
|
|
$data = [
|
|
$data = [
|
|
@@ -82,7 +82,7 @@ class QuestionController extends AbstractController
|
|
|
|
|
|
//上次绑定选手的时间不是今天
|
|
//上次绑定选手的时间不是今天
|
|
if(empty($user['bind_jigou_id'])){
|
|
if(empty($user['bind_jigou_id'])){
|
|
- return AppResult::response_fast(2,'先绑定机构再答题');//给不同的code,0报错,2跳到答题
|
|
|
|
|
|
+ return AppResult::response_fast(2,'先绑定工会再答题');//给不同的code,0报错,2跳到答题
|
|
}
|
|
}
|
|
|
|
|
|
//检查今日答题次数
|
|
//检查今日答题次数
|