Untitled
Never
*UploadProfilePix({payload}, {select, call, put}) { const {appModel, userModel} = yield select(state => state); const {token} = appModel; const {user_id, name, about, address, phone, email} = userModel; const obj = { token: token, file: payload.uri, fileName: payload.fileName, fileType: payload.fileType, }; const response = yield call(authService.uploadProfilePix, obj); const newAvatarUrl = response.data.url; const obj2 = { token: token, user_id: user_id, avatar: newAvatarUrl, name: name, email: email, phone: phone, address: address, about: about, }; console.log({Obj2: obj2}); const newResponse = yield call(authService.updateProfilePix, obj2); console.log({UploadProfilePix_Res: newResponse}); if (newResponse.status === 200) { ToastAndroid.show("照片更新成功!", ToastAndroid.SHORT); yield put({ type: "updateState", payload: {...response.data, success: true}, }); } },
Raw Text
-
Vitality Mastery: Proven Practices for Peak Performance
7 min ago
-
FAMILY SINNERS - Naughty Babe Demi Hawks Finally Gets In Her Hot Step Uncle Derrick Pierce's Pa
14 min ago
-
Untitled
40 min ago
-
A redhead schoolgirl came to the guy's house
44 min ago
-
Untitled
1 hour ago
-
SG Mechanical Emergency AC Repair
1 hour ago
-
Big Butt Maya Farrell Swaps Oral Skills And Takes A Pussy Creampie
1 hour ago
-
zauran
1 hour ago
-
Untitled
1 hour ago
-
https://www.macombdaily.com/2024/03/27/the-growth-matrix-reviews-2024-legit-growth-matrix-or-hidden-
1 hour ago