| 123456789101112131415161718192021222324252627282930313233343536373839404142 | 
							- <?php
 
- /**
 
-  * @copyright (C)2016-2099 Hnaoyun Inc.
 
-  * @author XingMeng
 
-  * @email hnxsh@foxmail.com
 
-  * @date 2018年3月8日
 
-  *  
 
-  */
 
- namespace app\home\model;
 
- use core\basic\Model;
 
- class DoModel extends Model
 
- {
 
-     // 新增访问
 
-     public function addVisits($id)
 
-     {
 
-         $data = array(
 
-             'visits' => '+=1'
 
-         );
 
-         parent::table('ay_content')->where("id=$id")->update($data);
 
-     }
 
-     // 新增喜欢
 
-     public function addLikes($id)
 
-     {
 
-         $data = array(
 
-             'likes' => '+=1'
 
-         );
 
-         parent::table('ay_content')->where("id=$id")->update($data);
 
-     }
 
-     // 新增喜欢
 
-     public function addOppose($id)
 
-     {
 
-         $data = array(
 
-             'oppose' => '+=1'
 
-         );
 
-         parent::table('ay_content')->where("id=$id")->update($data);
 
-     }
 
- }
 
 
  |