Commit 4d001a75 authored by gxx's avatar gxx

修改短信接口

parent a7731383
......@@ -85,7 +85,10 @@ class SMSService implements SMSServiceContract
$sid = SMS::max('id');
$sms = SMS::find($sid);
if($sms == null){
return $sms;
$addRecord = new SMS();
$addRecord->sms_surplus = $surplus->Balance;
$addRecord->save();
return $surplus;
}
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