消息监听整理完善

This commit is contained in:
2022-02-17 14:21:53 +08:00
parent c4704cb5ae
commit b4e4ee5458
6 changed files with 156 additions and 151 deletions

View File

@@ -1,6 +1,14 @@
import env from './conf/env.js'
export default {
inArray: (search, array) => {
for (var i in array) {
if (array[i] == search) {
return true
}
}
return false
},
checkPhone: (phone) => {
let re = /^[0-9]+.?[0-9]*/;
if (phone.length === 11) {