<?php
if(!$IWEB_SHOP_IN) {
	die('Hacking attempt');
}

/* post 数据处理 */
$id = intval(get_args('id'));
$v = intval(get_args('v'));

if(!$id) {
	exit();
}


//数据表定义区
$t_goods = $tablePreStr."goods";

//定义写操作
dbtarget('w',$dbServs);
$dbo=new dbex;

$sql = "update `$t_goods` set goods_number='$v' where goods_id='$id' and shop_id='$shop_id'";
if($dbo->exeUpdate($sql)) {
	echo '1';
}
?>