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