This commit is contained in:
@@ -140,10 +140,10 @@ const handleScanLogin = async () => {
|
||||
// #ifdef H5
|
||||
try {
|
||||
// 检查是否在微信环境
|
||||
// if (!isInWechat()) {
|
||||
// uni.showToast({ title: '请在微信中打开', icon: 'none' });
|
||||
// return;
|
||||
// }
|
||||
if (!isInWechat()) {
|
||||
uni.showToast({ title: '请在微信中打开', icon: 'none' });
|
||||
return;
|
||||
}
|
||||
|
||||
// 调用扫一扫
|
||||
const resultStr = await wxScan();
|
||||
@@ -170,12 +170,12 @@ const handleScanLogin = async () => {
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('扫码错误:', err);
|
||||
uni.showToast({ title: JSON.stringify(err), icon: 'none' });
|
||||
// uni.showToast({ title: JSON.stringify(err), icon: 'none' });
|
||||
}
|
||||
// // #endif
|
||||
// // #ifndef H5
|
||||
// uni.showToast({ title: '请在微信中打开', icon: 'none' });
|
||||
// // #endif
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
uni.showToast({ title: '请在微信中打开', icon: 'none' });
|
||||
// #endif
|
||||
};
|
||||
|
||||
const getPathDeviceId = () => {
|
||||
|
||||
Reference in New Issue
Block a user