<?php
class ctl_mall_js extends mod_mall {

	//Ìí¼Ó×î½üä¯ÀÀ
	function act_goods_history() {
		$id = (int)fun_get::get("id");
		if(empty($id)) return 0;
		$arr = cls_obj::get("cls_session")->get("goods.history");
		if(isset($arr['id_' . $id])) unset($arr['id_' . $id]);
		$arr['id_' . $id] = array('id'=>$id,'time'=>date('Y-m-d H:i:s'));
		cls_obj::get("cls_session")->set("goods.history" , $arr);
		return 1;
	}
}