'修改接口返回问题'
This commit is contained in:
parent
ce01b88f35
commit
aa39d6c56a
@ -201,12 +201,14 @@ class ReportForm extends ApiModel
|
||||
|
||||
public function getStartByStoreId($storeId)
|
||||
{
|
||||
return Report::find()
|
||||
$res = Report::find()
|
||||
->orderBy(['start_at' => SORT_ASC])
|
||||
->andWhere(['start' => 1,'store_id' => $storeId])
|
||||
->andWhere(['start' => 1, 'store_id' => $storeId])
|
||||
->andWhere('start_at>0')
|
||||
->select(['id'])
|
||||
->one()->toArray();
|
||||
->one();
|
||||
|
||||
return $res ? $res->toArray() : [];
|
||||
}
|
||||
|
||||
public function uploadModule($id, $leftImg, $rightImg)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user