作者 王智

修改

@@ -190,6 +190,9 @@ class Index extends Api @@ -190,6 +190,9 @@ class Index extends Api
190 $this->error('参数错误', 0); 190 $this->error('参数错误', 0);
191 } 191 }
192 $BatteryArr = json_decode($Arr['Battery'], true); 192 $BatteryArr = json_decode($Arr['Battery'], true);
  193 + foreach ($BatteryArr as $k => $v) {
  194 + $BatteryArr[$k]['title'] = Db::name('battery_code')->where('id', $v['type_id'])->value('title');
  195 + }
193 $data = [ 196 $data = [
194 'avatar' => cdnurl($Arr['avatar']), 197 'avatar' => cdnurl($Arr['avatar']),
195 'name' => $Arr['name'], 198 'name' => $Arr['name'],