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:
parent
9f191c67ed
commit
dc2ff40448
@ -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");
|
||||
}
|
||||
|
@ -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},
|
||||
|
Loading…
x
Reference in New Issue
Block a user