Commit cda140c2 authored by zhoujun's avatar zhoujun

预警配置

parent 0806648d
Pipeline #2225 passed with stage
in 0 seconds
...@@ -234,24 +234,17 @@ class ScriptService implements IScriptService ...@@ -234,24 +234,17 @@ class ScriptService implements IScriptService
$verity->cash = $verity->cash + $arr['cash']; $verity->cash = $verity->cash + $arr['cash'];
$verity->updated_at = $this->time; $verity->updated_at = $this->time;
$verity->save(); $verity->save();
}else{
unset($array[$key]); unset($array[$key]);
} }
} }
print_r($array);
if(!empty($array)){ if(!empty($array)) UserCashModel::insert($array);
$test = serCashModel::insert($array);
print_r($test);
}
} }
if($maxId > 0) self::getUpdateLastId(1,$maxId); if($maxId > 0) self::getUpdateLastId(1,$maxId);
die();
DB::commit(); DB::commit();
unset($logs,$log,$tem,$array); unset($logs,$log,$tem,$array);
return true; return true;
} catch (\Exception $e){ } catch (\Exception $e){
DB::rollback();
print_r($e->getMessage());die();
unset($logs,$log,$tem,$array); unset($logs,$log,$tem,$array);
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment