'修改接口返回问题'

This commit is contained in:
tang 2024-01-04 15:51:29 +08:00
parent ce01b88f35
commit aa39d6c56a

View File

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