rootx
V2EX  ›  微信

微信小程序码(菊花码)有什么识别方案?

  •  
  •   rootx · Apr 7, 2022 · 2595 views
    This topic created in 1510 days ago, the information mentioned may be changed or developed.
    目前项目上遇到一个需求
    要判定一堆小程序码中 相同的小程序码
    有大佬有现成的方案吗?
    5 replies    2023-05-13 10:13:42 +08:00
    rootx
        1
    rootx  
    OP
       Apr 8, 2022
    已经解决。
    chekun
        2
    chekun  
       Mar 14, 2023
    @rootx 大哥,咋解决的?方便分享一下?
    rootx
        3
    rootx  
    OP
       Mar 31, 2023
    @chekun

    调用微信开发者工具的识别接口,核心:

    1.开发者账号列表,signature 大概一个月失效一次 需要重新获取:
    array("openid"=>"xxxx","signature"=>"xxxx","appid"=>"xxxx");

    2.获取或刷新凭证
    $data['openid'] = self::$acount[$acount_number]['openid'];
    $data['signature'] = self::$acount[$acount_number]['signature'];

    self::post('https://mp.weixin.qq.com/debug/cgi-bin/webdebugger/refreshticket?os=win&clientversion=1052111300',$data,'json',true);

    3.获取识别后的值:
    self::post('https://servicewechat.com/wxa-dev-logic/decode_qrcode?os=win&clientversion=xxxx&appid='.self::$acount[0]['appid'].'&newticket='.$servicewechat_ticket,$image_url,'file');
    chekun
        4
    chekun  
       Apr 1, 2023
    @rootx 原来如此,多谢大哥
    08110920
        5
    08110920  
       May 13, 2023
    @rootx 这个是? 有介绍文档吗 ?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   925 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 79ms · UTC 20:57 · PVG 04:57 · LAX 13:57 · JFK 16:57
    ♥ Do have faith in what you're doing.