作者 郭鑫
1 个管道 的构建 通过 耗费 0 秒

测试问题修改

... ... @@ -88,7 +88,6 @@ class IndexController extends CommentController
// 兼职页面展示
public function show()
{
$refund = '';
// 判断是否是首次进入
$where_member['id'] = Session::get('uid');
$member = Db::name('Member')->where($where_member)->field('name,tel,card_num')->find();
... ... @@ -107,9 +106,6 @@ class IndexController extends CommentController
}else{
if($is_resume['status'] == 4){
$final['is_resume'] = 0;
$where_refund['elseId'] = $is_resume['id'];
$where_refund['type'] = 2;
$refund = Db::name('Refund')->where($where_refund)->value('content');
}else{
$final['is_resume'] = 3;
}
... ... @@ -117,7 +113,6 @@ class IndexController extends CommentController
}else{
$final['is_resume'] = 0;
}
$final['refund'] = $refund;
// 轮播图
$where_banner['status'] = array('neq',9);
$where_banner['type'] = 2;
... ... @@ -141,9 +136,6 @@ class IndexController extends CommentController
$where_cof['status'] = array('neq',9);
$tel = Db::name('Config')->where($where_cof)->value('tel');
$final['tel'] = $tel;
echo "<pre/>";
print_r($refund);
die;
$this->assign('final',$final);
return $this->fetch('postjob');
}
... ...
... ... @@ -424,6 +424,7 @@ class MemberController extends CommentController
// 我的简历
public function myResume(){
$refund = '';
$where_member['m.id'] = Session::get('uid');
$where_member['m.status'] = array('neq',9);
$member = Db::name('Member')->alias('m')
... ... @@ -450,6 +451,9 @@ class MemberController extends CommentController
$is_resume = Db::name('Resume')->where($where_resume)->find();
if($is_resume){
if($is_resume['status'] == 4){
$where_refund['elseId'] = $is_resume['id'];
$where_refund['type'] = 2;
$refund = Db::name('Refund')->where($where_refund)->value('content');
$final['is_resume'] = 4;
}else{
$final['is_resume'] = 1;
... ... @@ -458,6 +462,7 @@ class MemberController extends CommentController
}else{
$final['is_resume'] = 2;
}
$final['refund'] = $refund;
$this->assign('final',$final);
return $this->fetch('viae');
}
... ...