Authored by ziy

1、添加返回状态

2、修改返回ID转换为字符
... ... @@ -15,11 +15,28 @@ class MongoResult
public function lastInsertId()
{
return $this->__get('_id')->__toString();
}
public function lastInsertObject()
{
return $this->__get('_id');
}
/**
* @return bool
*/
public function getStatus()
{
$status = $this->__get('status');
if (!empty($status['ok']) && $status['ok'] == 1) {
return true;
}
return false;
}
public function getStatusData()
{
return $this->__get('status');
}
... ...