123456789101112131415 |
- starter.factory('User', function ($resource, $q, $filter, cfg, formatFilter, global,cfg) {
- global.erp_api = "http://192.168.1.36:13210/api/";
- return {
- user: function (actionname) {
- return $resource(formatFilter('{0}ext_erp/Comp/{1}/0/', cfg.api, actionname == undefined ? "" : actionname), {},
- {
- post: {
- method: "POST",
- headers: {"cid": JSON.stringify({"linkid": global.user.compno, "langid": "TW", "phone": global.user.cellphone}), "sn": "DEMO2017TW654327"}
- }
- })
- }
- };
- })
|