企业微信通讯录变更回调有现成的包吗,easywechat 好像没有。

看了一下easywechat的文档,好像没有现成的企业微信通讯录变更回调的相关方法。

有没有大神小哥自己封装好现成的包可以白嫖的?

《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
最佳答案

www.easywechat.com/docs/5.x/wework...

$config = [
    'corp_id' => 'xxxxxxxxxxxxxxxxx',
    'secret'   => 'xxxxxxxxxx',
    'suite_id'   => 'xxxxxxxxxx',
    'suite_secret'   => 'xxxxxxxxxx',

    // server config
    'token' => 'xxxxxxxxx',
    'aes_key' => 'xxxxxxxxxxxxxxxxxx',

    //...
];

$app = Factory::work($config);
$app->server->push(function($message){
    //$message即为回调内容
});

$response = $app->server->serve();

$response->send();
2年前 评论
讨论数量: 4

easywechat有 看5.x

2年前 评论
PHPisGod (楼主) 2年前
PHPisGod (楼主) 2年前

www.easywechat.com/docs/5.x/wework...

$config = [
    'corp_id' => 'xxxxxxxxxxxxxxxxx',
    'secret'   => 'xxxxxxxxxx',
    'suite_id'   => 'xxxxxxxxxx',
    'suite_secret'   => 'xxxxxxxxxx',

    // server config
    'token' => 'xxxxxxxxx',
    'aes_key' => 'xxxxxxxxxxxxxxxxxx',

    //...
];

$app = Factory::work($config);
$app->server->push(function($message){
    //$message即为回调内容
});

$response = $app->server->serve();

$response->send();
2年前 评论

@dengxit @人艰不拆 请问我尝试更改企业微信通讯录成员信息来触发回调,为何一次编辑资料操作,会访问回调两次甚至三次呢,将本来一次更新的N个字段,分为两次甚至三次更新这是什么意思呢?

$this->app->server->push(function ($message) {
    file_put_contents('root.txt', var_export($message, true), FILE_APPEND);
});
// 得到如下结果,为何一次跟新操作会触发两次回调和,分为两次更新的呢?
array (
  'ToUserName' => 'xxx',
  'FromUserName' => 'sys',
  'CreateTime' => '1629287731',
  'MsgType' => 'event',
  'Event' => 'change_contact',
  'ChangeType' => 'update_user',
  'UserID' => 'liwenfeng-18234445666',
  'Email' => '333@9999.com',
)array (
  'ToUserName' => 'xxx',
  'FromUserName' => 'sys',
  'CreateTime' => '1629287731',
  'MsgType' => 'event',
  'Event' => 'change_contact',
  'ChangeType' => 'update_user',
  'UserID' => 'liwenfeng-18234445666',
  'Position' => '555',
  'Telephone' => '222',
  'Address' => '444',
)
2年前 评论

你们有遇到企业回调:openapi回调地址请求不通过吗?

2年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!