...
|
...
|
@@ -98,7 +98,7 @@ const getPlatForm = (req) => { |
|
|
yoho.isiOS = /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(userAgent);
|
|
|
yoho.isAndroid = /Android/i.test(userAgent);
|
|
|
yoho.isApp = /YohoBuy/i.test(req.get('User-Agent')) || (req.query.app_version && req.query.client_type);
|
|
|
yoho.app_version = req.get('User-Agent').match(/app_version=([^;]+)/i)||req.query.app_version || '';
|
|
|
yoho.app_version = req.query.app_version || '';
|
|
|
if (yoho.app_version) {
|
|
|
arrs = yoho.app_version.split('.');
|
|
|
if (arrs.length > 2) {
|
...
|
...
|
@@ -342,7 +342,7 @@ exports.verifystudent = (req, res, next) => { |
|
|
Promise.all([verifiedStudentTotal(), vip(), verifyStudent(uid, params.college_name, params.education_degree, params.enrollment_year, params.token)])
|
|
|
.then((datas) => {
|
|
|
let isverify = false,
|
|
|
prompt = '你的学校信息未通审核';
|
|
|
prompt = '您的学校信息未通审核';
|
|
|
|
|
|
if (datas[2].code === 200) {
|
|
|
if (datas[2].code === 200) {
|
...
|
...
|
|