mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
#74 在查询中返回网站URL
This commit is contained in:
parent
7bda8563b5
commit
9a8c6f3bb8
@ -334,6 +334,15 @@ public class ApiChatbotController extends Handler {
|
||||
o.addProperty("snsid", c.getSnsAccountIdentifier());
|
||||
o.addProperty("enabled", c.isEnabled());
|
||||
|
||||
// SNSAccount
|
||||
SNSAccount snsAccount = snsAccountRes.findBySnsidAndOrgi(c.getSnsAccountIdentifier(), orgi);
|
||||
if(snsAccount == null){
|
||||
chatbotRes.delete(c); // 删除不存在snsAccount的机器人
|
||||
continue; // 忽略不存在snsAccount的机器人
|
||||
}
|
||||
|
||||
o.addProperty("snsurl", snsAccount.getBaseURL());
|
||||
|
||||
// 创建人
|
||||
User user = userRes.findById(c.getCreater());
|
||||
if (user != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user