正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -393,7 +393,7 @@ class Index extends Api | @@ -393,7 +393,7 @@ class Index extends Api | ||
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']); | 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']); | 396 | + $info['inform']['content'] = str_replace('<img src="/uploads/', '<img src=" '. request()->domain() . '/uploads/', $info['inform']['content']); |
397 | 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']); | 398 | $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); | 399 | $this->success('成功',$info); |
-
请 注册 或 登录 后发表评论