Merge pull request '修复bug' (#16) from change_join into main

Reviewed-on: https://git.wishpal.cn/wishpal_ironfan/tiefen_space_app/pulls/16
This commit is contained in:
yezian 2024-07-10 14:19:03 +08:00
commit 221ea0b6c1
1 changed files with 5 additions and 1 deletions

View File

@ -204,6 +204,7 @@ export default function My({ navigation }) {
} }
); );
const _data = await _response.json(); const _data = await _response.json();
console.log(_data);
if (_data.ret === -1) { if (_data.ret === -1) {
Toast.show({ Toast.show({
type: "error", type: "error",
@ -216,8 +217,11 @@ export default function My({ navigation }) {
_data.data.basic_status === 0 || _data.data.basic_status === 0 ||
_data.data.basic_status === 1 || _data.data.basic_status === 1 ||
_data.data.basic_status === 3 _data.data.basic_status === 3
) ) {
setIsInJoinProgress(true); setIsInJoinProgress(true);
return;
}
setIsInJoinProgress(false);
} catch (error) { } catch (error) {
console.error(error); console.error(error);
} }