pull/1/head
wanghousheng 1 year ago
parent 46f3adcf60
commit 958c268e51
  1. 1
      app/api/service/Identity.php
  2. 4
      app/common/model/user/Identity.php

@ -86,6 +86,7 @@ class Identity extends BaseService
foreach ($data as $value) { foreach ($data as $value) {
if ($value['month'] == 1) { if ($value['month'] == 1) {
$one_data = $value; $one_data = $value;
break;
} }
} }
foreach ($data as $key => $value) { foreach ($data as $key => $value) {

@ -16,7 +16,7 @@ class Identity extends BaseModel
// 定义主键 // 定义主键
protected $pk = 'identity_id'; protected $pk = 'identity_id';
/** /**
* 追加字段 * 追加字段
@ -53,7 +53,7 @@ class Identity extends BaseModel
*/ */
public function getList(array $where) public function getList(array $where)
{ {
return $this->where($where)->select(); return $this->where($where)->order('month', 'asc')->select();
} }
/** /**

Loading…
Cancel
Save