发表于: 2017-05-22 23:37:32

1 1050


今天完成的事:

修改BUG 

做PPT

明天计划的事:

修改样式

dome

遇到问题:

在做编辑接口传值是时,后台一直返回-100000

$scope.line=function(){

//编辑上线模式

$scope.lineMsg={

'title':$scope.title,

'type':$scope.tp,

'content':$scope.content,

'url':$scope.url,

'img':$scope.lalaimg,

'industry':$scope.dry,

'id':$scope.id,

}

//需要传递的数据

$scope.lineMsg.status=2;

loginService.login({name:'admin',pwd:'123456'})

//登录指令

.then(function(res){

if(res.data.code==0){

$http({

method:'put',

url:'/carrots-admin-ajax/a/u/article/'+$scope.id,

headers:{'Content-Type': 'application/x-www-form-urlencoded'},

data:$.param($scope.lineMsg)

})

.then(function(req){

if(req.data.code==0){}

postman测试同样返回-100000

解决方案:在广大同胞和师姐的帮助下了解到这个编辑接口需要给它一个发布的时间('createAt':1495355709686,)|后台的锅。。。。

收获:

改Bug就像人生一样,有喜有悲。


返回列表 返回列表
评论

    分享到