Commit 05b48902 authored by 梁俊杰's avatar 梁俊杰

1

parent 99ad6119
......@@ -42,7 +42,7 @@ if(isset($users[$data['assignedTo']])){
$res = $c->execute($req,null,'https://oapi.dingtalk.com/gettoken');
$token = $res->access_token;
$message = '{"msgtype":"markdown","markdown":{"text":"'.$data['markdown']['text'].'"}}';
$message = '{"msgtype":"markdown","markdown":{"title":"'.$data['markdown']['title'].'","text":"'.$data['markdown']['text'].'"}}';
$url = 'https://oapi.dingtalk.com/topapi/message/corpconversation/asyncsend_v2?access_token='.$token;
$res = $c->curl($url, ['agent_id' => '326099394', 'userid_list' => $users[$data['assignedTo']]['userid'], 'msg' => $message]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment