mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:07:06 +00:00
perf: 兼容okr1.1版本
This commit is contained in:
parent
66b9e7e9b3
commit
7ecfd86ffa
@ -1969,6 +1969,7 @@ class DialogController extends AbstractController
|
|||||||
*
|
*
|
||||||
* @apiParam {String} text 发送内容
|
* @apiParam {String} text 发送内容
|
||||||
* @apiParam {Number} userid 成员ID
|
* @apiParam {Number} userid 成员ID
|
||||||
|
* @apiParam {String} key 密钥(APP_KEY)
|
||||||
*
|
*
|
||||||
* @apiSuccess {Number} ret 返回状态码(1正确、0错误)
|
* @apiSuccess {Number} ret 返回状态码(1正确、0错误)
|
||||||
* @apiSuccess {String} msg 返回信息(错误描述)
|
* @apiSuccess {String} msg 返回信息(错误描述)
|
||||||
@ -1976,6 +1977,9 @@ class DialogController extends AbstractController
|
|||||||
*/
|
*/
|
||||||
public function okr__push()
|
public function okr__push()
|
||||||
{
|
{
|
||||||
|
if (Request::input("key") !== env('APP_KEY')) {
|
||||||
|
User::auth();
|
||||||
|
}
|
||||||
$text = trim(Request::input('text'));
|
$text = trim(Request::input('text'));
|
||||||
$userid = intval(Request::input('userid'));
|
$userid = intval(Request::input('userid'));
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user