|
@@ -962,7 +962,7 @@ std::string HttpSocket::updateuserscore(std::map<std::string, std::string> getda
|
|
|
|
|
|
//用户不存在不减商家的分数
|
|
//用户不存在不减商家的分数
|
|
auto firstuser = m_pcoll->find_one(bsoncxx::builder::stream::document{} << "account" << tuserscore.account.c_str() << bsoncxx::builder::stream::finalize);
|
|
auto firstuser = m_pcoll->find_one(bsoncxx::builder::stream::document{} << "account" << tuserscore.account.c_str() << bsoncxx::builder::stream::finalize);
|
|
- if (!firstuser || firstuser->view()["spreaderid"])
|
|
|
|
|
|
+ if (!firstuser || !firstuser->view()["spreaderid"])
|
|
{
|
|
{
|
|
strret = funclib::rettojson(11, "user is not exist");
|
|
strret = funclib::rettojson(11, "user is not exist");
|
|
return strret;
|
|
return strret;
|