|
|
@@ -439,10 +439,10 @@ class Model_notice extends Lin_Model
|
|
|
$headers = array('Content-Type: application/json','x-tts-access-token:'.$shop['token']);
|
|
|
$res = $this->apitt->su_curl($post,$url,$headers);
|
|
|
$res = json_decode($res,true);
|
|
|
- $this->logic_ding->sendToDing('【'.$list['orderinfo'].'】TT发送信息结果回执'.json_encode($res,JSON_UNESCAPED_UNICODE));
|
|
|
if(isset($res['data']['conversation_id']))
|
|
|
{
|
|
|
$f = $this->_ttfs($shop,$notice['content'],$res['data']['conversation_id']);
|
|
|
+ $this->logic_ding->sendToDing('【'.$list['orderinfo'].'】TT发送信息结果回执成功'.json_encode($f,JSON_UNESCAPED_UNICODE));
|
|
|
if(isset($f['data']['message_id']))
|
|
|
{
|
|
|
return 1;//成功
|
|
|
@@ -454,6 +454,7 @@ class Model_notice extends Lin_Model
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
+ $this->logic_ding->sendToDing('【'.$list['orderinfo'].'】TT发送信息结果回执失败'.json_encode($res,JSON_UNESCAPED_UNICODE));
|
|
|
return isset($res['message'])?'A:'.$res['message']:'发送失败';
|
|
|
}
|
|
|
}
|