搜狗 360 api 更改

suggest to move collection.insert(document) to outside of the function