mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-07-23 18:05:33 +00:00
rename saveAll
This commit is contained in:
parent
6a851b5ba6
commit
c85967ca75
@ -47,10 +47,14 @@ class SmsController extends Controller {
|
|||||||
return new JSONResponse(array("status" => false, "msg" => $this->errorMsg));
|
return new JSONResponse(array("status" => false, "msg" => $this->errorMsg));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->smsMapper->saveAll($this->userId, $smsDatas);
|
$this->smsMapper->writeToDB($this->userId, $smsDatas);
|
||||||
return new JSONResponse(array("status" => true, "msg" => "OK"));
|
return new JSONResponse(array("status" => true, "msg" => "OK"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @NoAdminRequired
|
||||||
|
*/
|
||||||
|
|
||||||
private function checkPushStructure($smsCount, $smsDatas) {
|
private function checkPushStructure($smsCount, $smsDatas) {
|
||||||
if ($smsCount != count($smsDatas)) {
|
if ($smsCount != count($smsDatas)) {
|
||||||
$this->errorMsg = "Error: sms count invalid";
|
$this->errorMsg = "Error: sms count invalid";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user