Exemple #1
0
    }
    /**
	 * 获得用户资料(不处理各项json)
	 * @param  [type] $uid [description]
	 * @return [type]      [description]
	 */
    public function get_user($uid)
    {
        $get_user = $this->get(array("id" => $uid));
        if (!isset($get_user['avatar'])) {
            return false;
        }
        if ($get_user['avatar'] == "") {
Exemple #2
0
     $this->db->where('id', $id)->update($this->table_name, array('count' => $query['count'] + $count));
 }
 public function minus($id, $count = 1)
 {
     $query = $this->db->select('count')->where('id', $id)->get($this->table_name)->row_array();
     $this->db->where('id', $id)->update($this->table_name, array('count' => $query['count'] - $count));
 }
 public function get_tag_list($json)
 {
     $result = array();
     foreach (json_decode($json) as $value) {
         $result[] = $this->get(array('id' => $value->t));