Commit a17392ab authored by gxx's avatar gxx

Merge branch 'dev-master' of 120.27.221.179:gxx123/workbiu-admin into dev-master

parents 1dfafab4 4d001a75
...@@ -86,7 +86,10 @@ class SMSService implements SMSServiceContract ...@@ -86,7 +86,10 @@ class SMSService implements SMSServiceContract
$sid = SMS::max('id'); $sid = SMS::max('id');
$sms = SMS::find($sid); $sms = SMS::find($sid);
if($sms == null){ if($sms == null){
return $sms; $addRecord = new SMS();
$addRecord->sms_surplus = $surplus->Balance;
$addRecord->save();
return $surplus;
} }
if($sms->created_at->isToday()){ if($sms->created_at->isToday()){
......
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