读取可用商户

pull/1/head
limu 1 year ago
parent c1ed784f48
commit 64cea60eb3
  1. 6
      app/api/controller/Store.php
  2. 6
      app/api/service/Store.php

@ -72,4 +72,10 @@ class Store extends Controller
$service = new StoreService;
return $this->renderSuccess($service->joinData($userInfo->user_id));
}
public function getStore(): Json
{
$service = new StoreService;
return $this->renderSuccess($service->getStore());
}
}

@ -184,4 +184,10 @@ class Store extends BaseService
];
}
public function getStore()
{
$storeList = Db::query('select store_id,store_name from yoshop_store where status = 1 and is_recycle = 0 and is_delete= 0');
return $storeList;
}
}
Loading…
Cancel
Save