致命错误: Call to a member function total() on array