public function withdrawal($word) { $parseWord = Analyze::parse($word); $accounts = $this->store->find($parseWord); $words = Analyze::sort($word, $accounts); return $words; }
/** * 查找匹配内容 * * @param $word * @return array */ public function withdrawal($word, $type) { $accounts = $this->store->find(Cheque::parse($word, $type)); $words = Analyze::sort($word, $accounts); return array_slice($words, 0, 10); }