CacheRefreshService.js 570 字节
"use strict";
var CacheRefreshService = angular.module('CacheRefreshService',[]);

CacheRefreshService.service("CacheRefreshService", [
	'$rootScope',
	'BaseService',
	function ($rootScope,BaseService) {
		var _service = {
            stockRefresh:function() {
					BaseService.request({
						url:BaseService.url.cache_refresh_url,
						method:'post',
						mark:true,
                        data:'',
						fn:function(response) {
                            BaseService.updateAlert(response.message,response.code);
						}
					});
			},
		}
		return _service;
	}]);