1234567891011121314151617181920 |
- app.controller('AdminSendSMSCtrl', function($rootScope, $scope, $http, $timeout, $state, myConfig, toaster, $q, $stateParams) {
- $scope.entity = {message: '测试'
- , mobiles: '13297965461'};
-
- $scope.test = {
- message1: "【考生服务平台】验证码******,北外招办。"
- };
-
- $scope.batchSendSMS = function(){
- $scope.myPromise = $http({
- url : myConfig.admin + '/sms/batchSend?session=' + $rootScope.session,
- method : 'POST',
- data : angular.toJson($scope.entity)
- }).success(function(data) {
- toaster.pop('success', '发送成功');
- }).error(function() {
- toaster.pop('error', '操作失败');
- });
- }
- });
|