| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- namespace app\extra\life\data;
- use app\extra\life\BasicLife;
- class Store extends BasicLife
- {
- /**
- * 获取来客绑定的所有门店
- * 一页最多50条
- */
- public function getStoreData(string $account,int $page = 1,int $size = 50): array
- {
- $data = [
- "account_id" => $account,
- "page" => $page,
- "size" => $size
- ];
- return $this->curlGetApi("goodlife/v1/shop/poi/query/",$data);
- }
- /**
- * 获取来客绑定的所有门店
- * 一页最多50条
- */
- public function getStoreGoods(string $account,string $cursor = ""): array
- {
- $data = [
- "account_id" => $account,
- "count" => 10,
- "status" => 1
- ];
- if (!empty($cursor)) {
- $data["cursor"] = $cursor;
- }
- return $this->curlGetApi("goodlife/v1/goods/product/online/query/",$data);
- }
- /**
- * @param string $accountId
- * @param int $page
- * @param string $endTime
- * @param string $startTime
- * @param int $pageSize
- * @return array
- */
- public function asyncClue(string $accountId = "",int $page = 1,string $startTime = "",string $endTime = '',int $pageSize = 100): array
- {
- $param = [
- "account_id" => $accountId,
- "start_time" => empty($startTime) ? date("Y-m-d H:i:s",strtotime("-120 min")) : $startTime,
- "end_time" => empty($endTime) ? date("Y-m-d H:i:s") : $endTime,
- "page" => $page,
- "page_size" => $pageSize,
- ];
- return $this->curlGetApi("goodlife/v1/open_api/crm/clue/query/",$param);
- }
- }
|