作者 lyh

gx

@@ -90,7 +90,7 @@ class ProductLogic extends BaseLogic @@ -90,7 +90,7 @@ class ProductLogic extends BaseLogic
90 */ 90 */
91 public function saveKeyword($keyword){ 91 public function saveKeyword($keyword){
92 $str = ''; 92 $str = '';
93 - if(!$keyword->isEmpty()){ 93 + if(count($keyword) != 0){
94 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($keyword, true) . PHP_EOL, FILE_APPEND); 94 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($keyword, true) . PHP_EOL, FILE_APPEND);
95 $arr = []; 95 $arr = [];
96 $keywordModel = new Keyword(); 96 $keywordModel = new Keyword();