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

公众号

@@ -392,12 +392,11 @@ class Index extends Api @@ -392,12 +392,11 @@ class Index extends Api
392 $info->is_collect = !empty($collect) ? 1 : 0; 392 $info->is_collect = !empty($collect) ? 1 : 0;
393 $deposit = new Inform; 393 $deposit = new Inform;
394 $info['inform'] = $deposit->where(['status'=>'1','job_id'=>$job_id,'deletetime'=>null])->order('id desc')->field('id,content,status,job_id')->find(); 394 $info['inform'] = $deposit->where(['status'=>'1','job_id'=>$job_id,'deletetime'=>null])->order('id desc')->field('id,content,status,job_id')->find();
395 -// $info['inform']['content']=str_replace('src="/uploads/','src="'.request()->domain().'/uploads/',$info['inform']['content']);  
396 $info['inform']['content'] = str_replace('<img src="/uploads/', '<img src=" '. request()->domain() . '/uploads/', $info['inform']['content']); 395 $info['inform']['content'] = str_replace('<img src="/uploads/', '<img src=" '. request()->domain() . '/uploads/', $info['inform']['content']);
397 -  
398 $info->visible(['id','images','job_name','factory_price_total','factory_price','subsidy_price','salary','content','lng','lat','label_ids'])->append(['is_collect','inform']); 396 $info->visible(['id','images','job_name','factory_price_total','factory_price','subsidy_price','salary','content','lng','lat','label_ids'])->append(['is_collect','inform']);
399 $this->success('成功',$info); 397 $this->success('成功',$info);
400 } 398 }
  399 +
401 /** 400 /**
402 * @ApiWeigh (87) 401 * @ApiWeigh (87)
403 * @ApiTitle (收藏职位) 402 * @ApiTitle (收藏职位)