major 小版本更新
This commit is contained in:
@@ -313,9 +313,20 @@ class Reviewer extends Base
|
|||||||
->where('t_user.email', $data['email'])
|
->where('t_user.email', $data['email'])
|
||||||
->where('t_user.state', 0)
|
->where('t_user.state', 0)
|
||||||
->find();
|
->find();
|
||||||
$check['majorshu'] = getMajorShu($check['major']);
|
// $check['majorshu'] = getMajorShu($check['major']);
|
||||||
$check['cvs'] = getReviewerCvs($check['user_id']);
|
$check['cvs'] = getReviewerCvs($check['user_id']);
|
||||||
$check['title'] = $check['technical'];
|
$check['title'] = $check['technical'];
|
||||||
|
|
||||||
|
|
||||||
|
$majors = $this->major_to_user_obj->where("user_id",$user_info['user_id'])->where("state",0)->select();
|
||||||
|
foreach ($majors as $k => $v){
|
||||||
|
$majors[$k]['shu'] = $this->getMajorShu($v['major_id']);
|
||||||
|
$majors[$k]['str'] = $this->getMajorStr($v['major_id']);
|
||||||
|
}
|
||||||
|
$check['major'] = $majors;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$re['result'] = $check;
|
$re['result'] = $check;
|
||||||
return jsonSuccess($re);
|
return jsonSuccess($re);
|
||||||
|
|
||||||
@@ -1611,7 +1622,8 @@ class Reviewer extends Base
|
|||||||
$info_insert['country'] = $data['country'];
|
$info_insert['country'] = $data['country'];
|
||||||
$info_insert['introduction'] = isset($data['introduction']) ? trim($data['introduction']) : '';
|
$info_insert['introduction'] = isset($data['introduction']) ? trim($data['introduction']) : '';
|
||||||
$info_insert['company'] = isset($data['company']) ? trim($data['company']) : '';
|
$info_insert['company'] = isset($data['company']) ? trim($data['company']) : '';
|
||||||
$info_insert['major'] = $data['major'];
|
self::updateUserMajor($uid,$data['major']);
|
||||||
|
// $info_insert['major'] = $data['major'];
|
||||||
$cv = isset($data['cv'])?trim($data['cv']):'';
|
$cv = isset($data['cv'])?trim($data['cv']):'';
|
||||||
// $info_insert['qualifications'] = $cv;
|
// $info_insert['qualifications'] = $cv;
|
||||||
//处理cv表
|
//处理cv表
|
||||||
@@ -1686,12 +1698,13 @@ class Reviewer extends Base
|
|||||||
$info_insert['country'] = $data['country'];
|
$info_insert['country'] = $data['country'];
|
||||||
$info_insert['introduction'] = isset($data['introduction']) ? trim($data['introduction']) : '';
|
$info_insert['introduction'] = isset($data['introduction']) ? trim($data['introduction']) : '';
|
||||||
$info_insert['company'] = isset($data['company']) ? trim($data['company']) : '';
|
$info_insert['company'] = isset($data['company']) ? trim($data['company']) : '';
|
||||||
$info_insert['major'] = $data['major'];
|
// $info_insert['major'] = $data['major'];
|
||||||
// $info_insert['cmajor'] = $data['cmajor'];
|
// $info_insert['cmajor'] = $data['cmajor'];
|
||||||
$info_insert['field'] = trim($data['field']);
|
$info_insert['field'] = trim($data['field']);
|
||||||
// $info_insert['qualifications'] = trim($data['cv']);
|
// $info_insert['qualifications'] = trim($data['cv']);
|
||||||
$cv = isset($data['cv'])?trim($data['cv']):'';
|
$cv = isset($data['cv'])?trim($data['cv']):'';
|
||||||
// $info_insert['qualifications'] = $cv;
|
// $info_insert['qualifications'] = $cv;
|
||||||
|
self::updateUserMajor($data['user_id'],$data['major']);
|
||||||
//处理cv表
|
//处理cv表
|
||||||
$c_cv = $this->user_cv_obj->where("user_id",$data['user_id'])->where("cv",$cv)->where("state",0)->find();
|
$c_cv = $this->user_cv_obj->where("user_id",$data['user_id'])->where("cv",$cv)->where("state",0)->find();
|
||||||
if(!$c_cv&&$cv!=''){
|
if(!$c_cv&&$cv!=''){
|
||||||
|
|||||||
@@ -383,7 +383,7 @@ class Ucenter extends Base{
|
|||||||
|
|
||||||
|
|
||||||
public function up_test(){
|
public function up_test(){
|
||||||
$res = self::updateUserMajor(20837,"16,14");
|
$res = self::updateUserMajor(20838,"16,14");
|
||||||
return jsonSuccess($res);
|
return jsonSuccess($res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user