A Report SDK From IssueSystem For Other Projects.
$ composer require catname/reporting-issues -vvv
$ php artisan vendor:publish --provider="Catname\ReportingIssues\ReportServiceProvider"
具体配置值可以从后台获取
#工单相关
#工单系统的域名
REPORT_HOST=
REPORT_ID=
REPORT_SECRET=
REPORT_SIGN_SALT=
#测试模式 首次安装先测试能否上报成功,成功后改为 false
REPORT_TEST_MODE=true
参数类型与 Laravel Log 一致
<?php
use Catname\ReportingIssues\reportIssues;
...
reportIssues::report(string 'messages', array '系统报错');
...
返回值示例
{
"code": 200,
"messages": "成功!",
"data": []
}
MIT