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

测试问题修改

@@ -88,7 +88,6 @@ class IndexController extends CommentController @@ -88,7 +88,6 @@ class IndexController extends CommentController
88 // 兼职页面展示 88 // 兼职页面展示
89 public function show() 89 public function show()
90 { 90 {
91 - $refund = '';  
92 // 判断是否是首次进入 91 // 判断是否是首次进入
93 $where_member['id'] = Session::get('uid'); 92 $where_member['id'] = Session::get('uid');
94 $member = Db::name('Member')->where($where_member)->field('name,tel,card_num')->find(); 93 $member = Db::name('Member')->where($where_member)->field('name,tel,card_num')->find();
@@ -107,9 +106,6 @@ class IndexController extends CommentController @@ -107,9 +106,6 @@ class IndexController extends CommentController
107 }else{ 106 }else{
108 if($is_resume['status'] == 4){ 107 if($is_resume['status'] == 4){
109 $final['is_resume'] = 0; 108 $final['is_resume'] = 0;
110 - $where_refund['elseId'] = $is_resume['id'];  
111 - $where_refund['type'] = 2;  
112 - $refund = Db::name('Refund')->where($where_refund)->value('content');  
113 }else{ 109 }else{
114 $final['is_resume'] = 3; 110 $final['is_resume'] = 3;
115 } 111 }
@@ -117,7 +113,6 @@ class IndexController extends CommentController @@ -117,7 +113,6 @@ class IndexController extends CommentController
117 }else{ 113 }else{
118 $final['is_resume'] = 0; 114 $final['is_resume'] = 0;
119 } 115 }
120 - $final['refund'] = $refund;  
121 // 轮播图 116 // 轮播图
122 $where_banner['status'] = array('neq',9); 117 $where_banner['status'] = array('neq',9);
123 $where_banner['type'] = 2; 118 $where_banner['type'] = 2;
@@ -141,9 +136,6 @@ class IndexController extends CommentController @@ -141,9 +136,6 @@ class IndexController extends CommentController
141 $where_cof['status'] = array('neq',9); 136 $where_cof['status'] = array('neq',9);
142 $tel = Db::name('Config')->where($where_cof)->value('tel'); 137 $tel = Db::name('Config')->where($where_cof)->value('tel');
143 $final['tel'] = $tel; 138 $final['tel'] = $tel;
144 - echo "<pre/>";  
145 - print_r($refund);  
146 - die;  
147 $this->assign('final',$final); 139 $this->assign('final',$final);
148 return $this->fetch('postjob'); 140 return $this->fetch('postjob');
149 } 141 }
@@ -424,6 +424,7 @@ class MemberController extends CommentController @@ -424,6 +424,7 @@ class MemberController extends CommentController
424 424
425 // 我的简历 425 // 我的简历
426 public function myResume(){ 426 public function myResume(){
  427 + $refund = '';
427 $where_member['m.id'] = Session::get('uid'); 428 $where_member['m.id'] = Session::get('uid');
428 $where_member['m.status'] = array('neq',9); 429 $where_member['m.status'] = array('neq',9);
429 $member = Db::name('Member')->alias('m') 430 $member = Db::name('Member')->alias('m')
@@ -450,6 +451,9 @@ class MemberController extends CommentController @@ -450,6 +451,9 @@ class MemberController extends CommentController
450 $is_resume = Db::name('Resume')->where($where_resume)->find(); 451 $is_resume = Db::name('Resume')->where($where_resume)->find();
451 if($is_resume){ 452 if($is_resume){
452 if($is_resume['status'] == 4){ 453 if($is_resume['status'] == 4){
  454 + $where_refund['elseId'] = $is_resume['id'];
  455 + $where_refund['type'] = 2;
  456 + $refund = Db::name('Refund')->where($where_refund)->value('content');
453 $final['is_resume'] = 4; 457 $final['is_resume'] = 4;
454 }else{ 458 }else{
455 $final['is_resume'] = 1; 459 $final['is_resume'] = 1;
@@ -458,6 +462,7 @@ class MemberController extends CommentController @@ -458,6 +462,7 @@ class MemberController extends CommentController
458 }else{ 462 }else{
459 $final['is_resume'] = 2; 463 $final['is_resume'] = 2;
460 } 464 }
  465 + $final['refund'] = $refund;
461 $this->assign('final',$final); 466 $this->assign('final',$final);
462 return $this->fetch('viae'); 467 return $this->fetch('viae');
463 } 468 }