|
|
@@ -23,6 +23,7 @@
|
|
|
#import "OrderDetailViewController.h"
|
|
|
#import "AddressEditorViewController.h"
|
|
|
#import "config.h"
|
|
|
+#import "Singleton.h"
|
|
|
#define UNZIP_OPEN_FAILED 0
|
|
|
#define UNZIP_SUCCESS 1
|
|
|
#define UNZIP_NO_SPACE 2
|
|
|
@@ -487,7 +488,9 @@ void UncaughtExceptionHandler(NSException *exception) {
|
|
|
|
|
|
|
|
|
NSString *sql = [NSString stringWithFormat:@"insert into errlog (errmsg,params) values ('%@','%@');",versionNum,content];
|
|
|
-
|
|
|
+ if ([Singleton sharedInstance].currentDB) {
|
|
|
+ [iSalesDB close_db:[Singleton sharedInstance].currentDB];
|
|
|
+ }
|
|
|
[iSalesDB execSql:sql];
|
|
|
|
|
|
AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
|