以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]腾讯短信接口问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=144253)

--  作者:新动感时代
--  发布时间:2019/12/15 11:40:00
--  [求助]腾讯短信接口问题
我的问题:    
      
        (1).   下面是腾讯官方短信API 接口签名字符串生成的文档说明:
         
              签名字符串sig字段:根据公式 sha256(appkey=$appkey&random=$random&time=$time&mobile=$mobile)生成。
              此生成公式中有四个参数:(1)appkey( 密匙),(2)random(随机数),(3)time(   时间戳 ),(4)mobile( 手机号)
                                                      
       (2)  下面是我用foxtable生成的短信API接口 签名字符串:
                                   Dim appkey As String                    ( 密匙)
                                   Dim random As Long                     (随机数)
                                    Dim time As Integer                    (   时间戳 )
                                   Dim moblile As String                     ( 手机号)
                                            Dim aryTmp() As String = {appkey,random,time,moblile}             \'命名包含四个参数的数组
                                               Array.Sort(aryTmp)                \'数组排序
                                            Dim sig As String = String.Join("", aryTmp)                 ’将数组生成字符串
              sig = Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sig, "SHA256").ToLower()          \'sha256算法加密
                  
问题:  代入参数值后,sig 提交腾讯短信API接口审核不通过,提示sig格式不对。
            请求老师给指点一下。我是小白,这问题困扰 几天了,劳驾版主老师帮一下忙。谢谢! 

--  作者:有点蓝
--  发布时间:2019/12/15 20:21:00
--  
请不要发重复的问题:http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&Id=144248