阅读背景:

如何在模型中捕获客户端的IP?

来源:互联网 

Consider the following code:

请考虑以下代码:

// common/models/test.js

module.exports = function(Test) {
    Test.observe('before save', function (ctx, next) {
        var x = <GET CLIENT IP> // <-----------
        next();
    });
};
// co



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: