作者 刘锟

update

@@ -40,7 +40,15 @@ class InquiryForwardLogic extends BaseLogic @@ -40,7 +40,15 @@ class InquiryForwardLogic extends BaseLogic
40 */ 40 */
41 public function getType() 41 public function getType()
42 { 42 {
43 - return $this->success($this->model->typeMap()); 43 + $type = $this->model->typeMap();
  44 + $list = [];
  45 + foreach ($type as $k => $v) {
  46 + $list[] = [
  47 + 'id' => $k,
  48 + 'name' => $v
  49 + ];
  50 + }
  51 + return $this->success($list);
44 } 52 }
45 53
46 /** 54 /**