1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 16:06:15 +00:00

Ok for SMS count

This commit is contained in:
Loïc Blot (@U-Exp) 2014-09-12 14:52:12 +02:00
parent 9f191c67ed
commit dc2ff40448
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class SmsController extends Controller {
*/
public function push($smsCount, $smsDatas) {
if ($smsCount != count($smsDatas)) {
return "ERROR";
return "Error: sms count invalid";
}
return array("test" => "test2");
}

View File

@ -14,7 +14,7 @@
$('#push').click(function () {
var url = OC.generateUrl('/apps/ocsms/push');
var data = {
smsCount: 1,
smsCount: 2,
smsDatas: [
{"read": 1, "date": 1410524385, "seen": 0, "address": "+33612121212", "body": "testSMS", "id": 10},
{"read": 0, "date": 1400524385, "seen": 1, "address": "+33614121212", "body": "test SMS 2", "id": 14},