yingzi hace 2 años
padre
commit
3a58470689
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      app/api/controller/Pub.php

+ 3 - 0
app/api/controller/Pub.php

@@ -271,6 +271,9 @@ class Pub extends BaseController
         }
         }
         $typeData = (new TypeAudit)->where("uid",$uid)->order("id","desc")->find();
         $typeData = (new TypeAudit)->where("uid",$uid)->order("id","desc")->find();
         $data["is_type_audit"] = (empty($typeData) || $typeData["status"]!=1)?0:1;
         $data["is_type_audit"] = (empty($typeData) || $typeData["status"]!=1)?0:1;
+        //名片浏览次数
+        (new UserModel)->where('uid', $uid)->inc('card_look_count', 1)->update();
+        
         return app('json')->success($data);
         return app('json')->success($data);
     }
     }