openapi-demo-php's People
Forkers
mrchen2015 ddtalk ruifeng126 euleryang mguozhen ian-cuc cosmocommerce liwang0113 ezc larryzhang hwswin jacky5059 liningwangyi wozzup jackwangcumt 397832506 lunarfuture xyzonline fzffzw helloking000 danihay yijialee im286er oomygod wflashy sivagzhang zoujq wxb szhuangxr xiasf imruiyeah shi-nian admirl gitzwt lt1983 yangkongguo jackycat wulih fenglangyj windcn apple0407 timtang123 liujiankang marslabtron syncxplus hefangxuan bryant1410 herocodemaster rwx------ varphper joshle baiwenyong yongshengli penk-jiahuan pengzz007 wangjie33589 ewenlong03 huangdi42 fisher-89 xuanqiang rainbow8 cuizhizhan wanglin02 trueporwu chery521 stinby amourz baichina sholvabai akalinus oyldegit dean9407 xiewei fukun jamesxu326 wisdomwei201804 iam888 qcww mynameistyc weiwenk ouxh4git zhangyanj xhair woyeyongsu arsbell raypeng08 vvstatus ylong52 muyi123456789 zzvcom sexcode xuyikao1 xuexuejie youyoubao keepondream cym000 zdjphp jude-xiu sunzhoubo lzq0311openapi-demo-php's Issues
ISV初次创建的demo code有问题
receive.php 的第十五行,第一次创建的时候应该用 CREATE_SUITE_KEY。
$crypt = new DingtalkCrypt(TOKEN, ENCODING_AES_KEY, SUITE_KEY);
mcrypt_module_open() 有替代方案可用吗?
mcrypt_module_open() 有替代方案可用吗?
php 5.4 使用出错,php5.5以上使用没有问题
不合法的access_token
SUITE_KEY
SUITE_SECRET
TOKEN
APPID
ENCODING_AES_KEY 都已经填写正确。
提示:
var _config = object(stdClass)#9 (2) {
["errcode"]=>
int(40014)
["errmsg"]=>
string(24) "不合法的access_token"
}
权限校验失败Code:52013签名校验失败错误
问题已解决,帮助后来的钉钉开发者解决此类问题!
问题原因:钉钉服务端生成签名使用的参数和您生成的参数不同,主要有可能是url地址和ticket参数不一样
url地址不同的原因之一:开发者在钉钉开发后台配置了https的域名,然而代码生成的url地址确加上了端口号443,导致两个url参数不匹配报错
ticket参数不同的解决办法:进入项目中首先把filecache.php文件删除,然后重新创建,然后赋予chmod 777权限,然后在钉钉开发者后台授权微应用,指导两边的tikcet参数是一样的。
证书问题
证书很蛋疼,demo直接提供个吧,至少开发测试用
Fatal error: Uncaught exception 'Httpful\Exception\ConnectionErrorException' with message 'Unable to connect to "https://oapi.dingtalk.com/gettoken?corpid=&corpsecret=&": 35 error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure'
创建企业应用demo无法运行
按创建企业应用的五个步骤走了,但为什么应用首页的按钮点击后没反应呢?
config.php中的CORPID,SECRET,AGENTID信息均已添加;
PHP服务器环境中也包含mcrypt扩展版本为2.5.8;
将corp文件夹中所有文件权限均设为777,
是什么原因呢?
EAK长度为43,依然报900004错误
E/ 2016-10-20 09:18:54 Token: amb8945iddjkfgnsl5
E/ 2016-10-20 09:18:54 EAK: mk0f0l2zdlfu3rsgt9srqqv7demt6k4z12rpo5onps9
E/ 2016-10-20 09:18:54 strlen 43
E/ 2016-10-20 09:18:54 SUITEKEY: suite4xxxxxxxxxxxxxxx
E/ 2016-10-20 09:18:54 {"signature":"35716f2f5a9355fc51931711bab19576578f1605","timestamp":"1476955134333","nonce":"26q7WdQn"} ERR:900004
E/ 2016-10-20 09:18:54 {"signature":"35716f2f5a9355fc51931711bab19576578f1605","timestamp":"1476955134333","nonce":"26q7WdQn"}CREATE SUITE ERR:900004
记录中EAK长度为43,但是每次都报900004错误,是什么原因?
// 这段代码明明是 != 43 才会有900004错误
if (strlen($this->m_encodingAesKey) != 43) {
return ErrorCode::$IllegalAesKey;
}
Not in DingTalk pc webview
下载此demo,部署好环境后,进入indexpc.php页面,控制台报:Not in DingTalk PC webview index.js第200行的信息,请问这是什么原因?
建议使用CURL根据业务范畴封装一套简单php类库
目前的composer, nategood-httpful有点重,不太适合国内环境,建议就签名认证、套件授权激活、应用型数据api做简单封装。
Auth中corp_access_token中怎么会有access_token的set
Auth中corp_access_token中怎么会有access_token的set。。。
public static function getAccessToken()
{
/**
* 缓存accessToken。accessToken有效期为两小时,需要在失效前请求新的accessToken(注意:以下代码没有在失效前刷新缓存的accessToken)。
*/
$accessToken = Cache::get('corp_access_token');
if ($accessToken == '')
{
$response = Http::get('/gettoken', array('corpid' => CORPID, 'corpsecret' => SECRET));
$accessToken = $response->access_token;
Cache::set('access_token', $accessToken);
}
return $accessToken;
}
mcrypt_module_open() 有替代方案可用吗?
mcrypt_module_open 有替代方案可用吗?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.