模型:
App.Attack = DS.Model.extend({
user: DS.belongsTo('user'),
post: DS.belongsTo('post'),
damage: DS.attr('integer')
});
控制器:
store.findQuery('attack',{user: {{Auth::user()->id}},post: this.get('id')}).then(function (attack){
return false;
},function(error) {
return true;
});
数据存在但总是返回true,请帮助