multi-store/app/api/logic/store/StoreLogic.php

25 lines
574 B
PHP
Raw Permalink Normal View History

2024-06-13 10:27:56 +08:00
<?php
namespace app\api\logic\store;
use app\common\logic\BaseLogic;
use app\common\model\system_store\SystemStore;
use think\facade\Db;
class StoreLogic extends BaseLogic
{
public static function search($param)
{
2024-06-25 09:46:16 +08:00
$data = SystemStore::where($param)
2024-06-13 10:27:56 +08:00
->field(['id', 'name', 'phone', 'detailed_address', 'image', 'is_show',
'day_time', 'is_store', 'latitude', 'longitude', 'day_start', 'day_end', 'is_store'
, 'is_send'
])
2024-06-25 09:46:16 +08:00
->find();
return $data ? $data->toArray() : [];
2024-06-13 10:27:56 +08:00
}
}