UNIX_TIMESTAMP(date) :返回时间戳
select sum(diamond) isum from m_shares_log where user_id={$user_id} and UNIX_TIMESTAMP(created_at) > ".strtotime(date('Y-m-d'))
from_unixtime() :时间戳 转换时间
UNIX_TIMESTAMP(date) :返回时间戳
select sum(diamond) isum from m_shares_log where user_id={$user_id} and UNIX_TIMESTAMP(created_at) > ".strtotime(date('Y-m-d'))
from_unixtime() :时间戳 转换时间