Skip to content

Commit

Permalink
多音字
Browse files Browse the repository at this point in the history
  • Loading branch information
lkfs committed Aug 28, 2020
1 parent c1ac808 commit 4a6cde3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Repositories/WordGroupV3Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,14 @@ public function muti_input(){
$newWord = MNewWord::where('word',$word[0])
->where('pinyin',$word[1])
->first();
echo $word[0].'-'.$word[1]."\n";
if($newWord==null){
echo $word[0].'-'.$word[1]."\n";
$newWord = new MNewWord();
$newWord->word = $word[0];
$newWord->pinyin = $word[1];
}
$newWord->multi_flag =1;
$newWord->save();

//单词入库

//dd([$word, $group]);
Expand Down

0 comments on commit 4a6cde3

Please sign in to comment.