作者 lishaoshuai
1 个管道 的构建 通过 耗费 1 秒

更新 CardController.php 调整意向用户

@@ -163,6 +163,8 @@ class CardController extends RestBaseController @@ -163,6 +163,8 @@ class CardController extends RestBaseController
163 } 163 }
164 if (isset($card_id) && $card_id != $data['id']) { 164 if (isset($card_id) && $card_id != $data['id']) {
165 $do1 = Db::name('browse_log')->insert(['topic_id' => $data['id'],'user_id' => $this->userId]); 165 $do1 = Db::name('browse_log')->insert(['topic_id' => $data['id'],'user_id' => $this->userId]);
  166 + }else{
  167 + $do1 = Db::name('browse_log')->insert(['topic_id' => $data['id'],'user_id' => $this->userId]);
166 } 168 }
167 } 169 }
168 //浏览数+1 170 //浏览数+1