function AddCode($money) { $code = Comm::get_random_char(32); $this->db->insert($this->table, ["add_time" => time(), "code" => $code, "money" => $money]); return $code; }