|
@@ -933,9 +933,11 @@ class CameraApiController extends BaseController
|
|
|
$old_img_path = $old_title_image_array[count($old_title_image_array)-1];
|
|
|
$new_img_path_list = DB::connection('etl_zaoquan')->select("select * from news_img_list where img_name ='".$old_img_path."'");
|
|
|
if(count($new_img_path_list) > 0){
|
|
|
- $result[$i]->title_image = $new_img_path_list[0]->new_name;
|
|
|
+ $result[$i]->main_img = $new_img_path_list[0]->new_name;
|
|
|
}
|
|
|
|
|
|
+ unset($result[$i]->title_image);
|
|
|
+
|
|
|
//替换text
|
|
|
preg_match_all($pattern, $result[$i]->text, $matches);
|
|
|
foreach ($matches[2] as $index => $oldSrc) {
|