|
@@ -77,12 +77,17 @@ class PropertySurplusLogLogic extends BaseLogic
|
|
|
throw new Exception('状态不允许操作');
|
|
throw new Exception('状态不允许操作');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if($params['status'] == 1){
|
|
|
|
|
- self::EntryCash($params);
|
|
|
|
|
|
|
+ if(intval($params['status']) === 1){
|
|
|
|
|
+ $res = self::EntryCash($params);
|
|
|
}
|
|
}
|
|
|
- if($params['status'] == 1){
|
|
|
|
|
- self::CancelCash($params);
|
|
|
|
|
|
|
+ if(intval($params['status']) === 2){
|
|
|
|
|
+ $res = self::CancelCash($params);
|
|
|
}
|
|
}
|
|
|
|
|
+ if(!$res){
|
|
|
|
|
+ throw new Exception(self::getError());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/*PropertySurplusLog::where('id', $params['id'])->update([
|
|
/*PropertySurplusLog::where('id', $params['id'])->update([
|
|
|
'in_out' => $params['in_out'],
|
|
'in_out' => $params['in_out'],
|
|
|
'property_commission_id' => $params['property_commission_id'],
|
|
'property_commission_id' => $params['property_commission_id'],
|