25 lines
574 B
PHP
25 lines
574 B
PHP
<?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)
|
|
{
|
|
$data = SystemStore::where($param)
|
|
->field(['id', 'name', 'phone', 'detailed_address', 'image', 'is_show',
|
|
'day_time', 'is_store', 'latitude', 'longitude', 'day_start', 'day_end', 'is_store'
|
|
, 'is_send'
|
|
])
|
|
->find();
|
|
return $data ? $data->toArray() : [];
|
|
}
|
|
|
|
|
|
} |