---
# System prepended metadata

title: Untitled

---

```flow
startID=>start: start
con_metch=>condition: 判斷Cookie有無符合的資料
con_deadline=>condition: 資料是否過期
con_internet=>condition: 網路連線是否正常

endID=>end: end

startID->con_metch
con_metch(no,bottom)->con_internet
con_metch(yes)->con_deadline

ope_updataCookie=>operation: updata Cookie資料
ope_getCookieData=>operation: get Cookie資料
ope_updataCookie->ope_getCookieData->endID

con_deadline(no,bottom)->ope_getCookieData
con_deadline(yes)->con_internet


ope_sendSIDtoFirebase=>operation: 傳scholar ID給Firebase
ope_IntError=>operation: Internet error
con_internet(yes)->ope_sendSIDtoFirebase
con_internet(no,bottom)->ope_IntError

con_FirebaseMetch=>condition: Firebase有無符合資料
ope_sendSIDtoFirebase->con_FirebaseMetch

ope_returnData=>operation: 回傳資料給Cookie
ope_returndefault=>operation: 回傳資料不存在給Cookie
con_FirebaseMetch(yes)->ope_returnData
con_FirebaseMetch(no,bottom)->ope_returndefault

con_dataCheck=>condition: 資料是否正確
ope_DataError=>operation: Data is not exist
ope_returndefault->con_dataCheck
ope_returnData->con_dataCheck
con_dataCheck(yes)->ope_updataCookie
con_dataCheck(no,bottom)->ope_DataError


```