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();
});
};
// coConsider 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