问题描述
我正在尝试通过Suite API将SuiteCRM连接到3CX。
add(_:)
测试一下,系统给出了
https://URL/suitecrm/Api/V8/module/Contacts?fields[Contacts]=id&filter[operator]=or&filter[phone_home][eq]=XXXXXXXXX&filter[phone_mobile][eq]=XXXXXXXXX&filter[phone_work][eq]=XXXXXXXXX&filter[phone_other][eq]=XXXXXXXXX
我在suitecrm.log中
"errors": {
"status": 400,"title": null,"detail": "Database failure. Please refer to suitecrm.log for details."
}
}Database failure. Please refer to suitecrm.log for details.
如果我在没有Mon Oct 12 20:57:37 2020 [][][FATAL] MysqLi_query Failed.
Mon Oct 12 20:57:37 2020 [][][FATAL] Error retrieving Contact list: Query Failed: SELECT contacts.id,contacts.assigned_user_id FROM contacts LEFT JOIN contacts_cstm ON contacts.id = contacts_cstm.id_c where (contacts.phone_home = 'XXXXXXXXX' OR contacts.phone_mobile = 'XXXXXXXXX' OR contacts.phone_work = 'XXXXXXXXX' OR contacts.phone_other = 'XXXXXXXXX' OR contacts.deleted = '0') AND contacts.deleted=0 LIMIT 0,-98: MysqL error 1064: You have an error in your sql Syntax; check the manual that corresponds to your MysqL server version for the right Syntax to use near '-98' at line 1
的MysqL中运行查询,则一切正常(没有result.s..limit = 0,但没有错误)。
我认为错误是在查询98
的末尾:但是我不知道是什么原因!
有人遇到同样的问题吗?
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)