//自增
$res=Db::name('accessories') ->where('id',$req['id']) ->inc('number',$req['number']) ->inc('allputin',$req['number']) ->update();
//自減
$res=Db::name('accessories') ->where('id',$req['id']) ->dec('number',$req['number']) ->dec('allputin',$req['number']) ->update();