q-koa 12.0.3 → 12.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/app.js +7 -3
- package/package.json +3 -2
package/core/app.js
CHANGED
|
@@ -1877,9 +1877,13 @@ class APP {
|
|
|
1877
1877
|
)
|
|
1878
1878
|
|
|
1879
1879
|
const flag = await app[appName].model[controller][fn]({
|
|
1880
|
-
|
|
1881
|
-
?
|
|
1882
|
-
:
|
|
1880
|
+
...(ctx.request.clientType === 1
|
|
1881
|
+
? {}
|
|
1882
|
+
: {
|
|
1883
|
+
createdid: ctx.request[`${appName}-user`]
|
|
1884
|
+
? ctx.request[`${appName}-user`].id
|
|
1885
|
+
: 0,
|
|
1886
|
+
}),
|
|
1883
1887
|
...newData,
|
|
1884
1888
|
})
|
|
1885
1889
|
if (fn === 'create') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "q-koa",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -58,7 +58,8 @@
|
|
|
58
58
|
"node-uuid": "^1.4.8",
|
|
59
59
|
"sha1": "^1.1.1",
|
|
60
60
|
"redis": "^4.0.3",
|
|
61
|
-
"yly-nodejs-sdk": "^1.0.2"
|
|
61
|
+
"yly-nodejs-sdk": "^1.0.2",
|
|
62
|
+
"vm2": "^3.9.19"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
64
65
|
"eslint": "^4.19.1",
|