|
|
@@ -306,11 +306,12 @@ class DeclarationUpgradeForm extends Model
|
|
|
'lvPv' => $this->_decPv
|
|
|
];
|
|
|
$modifyDecLv = $decLevelLog->frontendChange($decLog);
|
|
|
+ if (empty($modifyDecLv)) {
|
|
|
+ $transaction->rollBack();
|
|
|
+ throw new Exception("为会员升级失败");
|
|
|
+ }
|
|
|
$transaction->commit();
|
|
|
} catch(Exception $e) {
|
|
|
- file_put_contents('err_upgrade_txt.txt', var_export([
|
|
|
- 'err' => $e->getMessage()
|
|
|
- ],true));
|
|
|
$transaction->rollBack();
|
|
|
throw new Exception($e->getMessage());
|
|
|
|