2 Commits

Author SHA1 Message Date
zhangf@suq.cn b3b71eb4a2 Merge remote-tracking branch 'origin/master' 2 weeks ago
zhangf@suq.cn c8f614dc55 fix(model): 修正getAllCustomArrayData方法的默认排序参数 2 weeks ago
  1. 2
      app/model/Model.php

2
app/model/Model.php

@ -101,7 +101,7 @@ class Model extends BaseModel
return dataReturn($this->sucCode,$this->getMsg,$res);
}
public function getAllCustomArrayData($where,$order='sort asc,id desc',$field="*",$with=[],$offset=0): array
public function getAllCustomArrayData($where,$order='id desc',$field="*",$with=[],$offset=0): array
{
$key = md5($this->className . json_encode([$where,$order,$field,$with]));

Loading…
Cancel
Save