作者 wangzhi

tuisong

@@ -88,8 +88,15 @@ class Index extends Api @@ -88,8 +88,15 @@ class Index extends Api
88 'lng' => '', 88 'lng' => '',
89 'name' => '', 89 'name' => '',
90 'mobile' => '', 90 'mobile' => '',
  91 + 'text' => '',
  92 + 'images' => [],
91 ]; 93 ];
92 } else { 94 } else {
  95 + if (strstr($arr['images'], ',')) $Images = explode(',', $arr['images']);
  96 + else $Images = explode(' ', $arr['images']);
  97 + foreach ($Images as $k => $v) {
  98 + $Images[$k] = cdnurl($v);
  99 + }
93 $data = [ 100 $data = [
94 'id' => $arr['id'], 101 'id' => $arr['id'],
95 'title' => $arr['title'], 102 'title' => $arr['title'],
@@ -98,6 +105,8 @@ class Index extends Api @@ -98,6 +105,8 @@ class Index extends Api
98 'lng' => $arr['lng'], 105 'lng' => $arr['lng'],
99 'name' => $arr['name'], 106 'name' => $arr['name'],
100 'mobile' => $arr['mobile'], 107 'mobile' => $arr['mobile'],
  108 + 'text' => $arr['text'],
  109 + 'images' => $Images,
101 ]; 110 ];
102 } 111 }
103 $this->success('成功', $data); 112 $this->success('成功', $data);