pull/1/head
wanghousheng 1 year ago
parent 46f3adcf60
commit 958c268e51
  1. 1
      app/api/service/Identity.php
  2. 2
      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) {

@ -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