統計當天的各種收益獎金
function sumprice($userid = null){
unset($where);
$where['addtime'] = array('exp', ' > ' . strtotime(date('Y-m-d')));
$where['userid'] = $userid;
$where['type'] = array('in',array(2,3,7,15,17));
$pricedata = M('caiwu')->where($where)->sum('price');
return $pricedata;
}