|
@@ -598,7 +598,10 @@ module.exports = app => {
|
|
|
msg: '',
|
|
|
};
|
|
|
try {
|
|
|
- const { code, account, password} = ctx?.data || {}
|
|
|
+ if (!ctx.data) {
|
|
|
+ throw '参数有误';
|
|
|
+ }
|
|
|
+ const { code, account, password} = ctx.data;
|
|
|
if (!code || !account || !password) {
|
|
|
throw '参数有误';
|
|
|
}
|