.matches('Looking', function(session,args){
var StoreResponse = builder.EntityRecognizer.findEntity(args.entities,'search');
StoreResponse = StoreResponse.entity
console.log(StoreResponse)
console.log(StoreResponse)
console.log(StoreResponse)
console.log(StoreResponse)
Bing.news(StoreResponse, {
count: 10,
offset: 3
}, function(error, res, body){
console.log(body.value[2].url);
session.send(' \%s\ \n\n \%s\ ',body.value[2].name,body.value[2].url)
console.log(body.value[3].url);
session.send(' \%s\ \n\n \%s\ ',body.value[3].name,body.value[3].url)
console.log(body.value[4].url);
session.send(' \%s\ \n\n \%s\ ',body.value[4].name,body.value[4].url)
console.log(body.value[5].url);
session.send(' \%s\ \n\n \%s\ ',body.value[5].name,body.value[5].url)
console.log(body.value[6].url);
session.send(' \%s\ \n\n \%s\ ',body.value[6].name,body.value[6].url)
});
})
我已经找到 CASE WHEN 查询的解决方案 DB :: raw('(CASE WHEN favorite.is_favorite IS NULL 那么0 ELSE favorite.is_favorite END)AS is_favorite'),
但问题是我不能对 CONVERT_TZ 做同样的事情,其中值在引号内。
DB :: raw('convert_tz(test.updated_at,+ 00:00,-05:30)as updated_at')