Authored by 盖剑秋

delete useless log. reviewed by redding.

... ... @@ -43,10 +43,8 @@ export function voidImplementationFunc() {
export function startEditPost(postingState) {
return dispatch => {
console.log('lalala');
dispatch(voidImplementationFunc());
dispatch(() => {
console.log('nononononon');
if (postingState) {
Alert.alert('抱歉','您有正在发送的帖子,请耐心等待~');
} else {
... ... @@ -90,8 +88,6 @@ export function mergeCachedPosting() {
return dispatch => {
store.get(POSTING_CACHE_KEY)
.then((cachedObj)=>{
console.log('2222222222222222222222222');
console.log(cachedObj);
if (cachedObj) {
dispatch(commitMerge(cachedObj));
dispatch(startPosting(cachedObj.assets));
... ... @@ -231,11 +227,7 @@ export function startPosting(assets) {
storedState.boards = [];
storedState.postingBannerShow = true;
store.save(POSTING_CACHE_KEY,storedState).then(()=>{
console.log('00000000000000000000000000');
console.log(storedState);
store.get(POSTING_CACHE_KEY).then((data)=>{
console.log('11111111111111111111');
console.log(data);
})
if (assets.length) {
for (let i = 0; i < assets.length; i++) {
... ... @@ -245,11 +237,8 @@ export function startPosting(assets) {
}
new PostingService().uploadImageAsset(asset)
.then(response => {
console.log(response);
dispatch(updateUploadState(response,asset.name));
}).catch(error => {
console.log(error);
dispatch(postFail());
});
}
... ...