主要文档:https://developer.umeng.com/docs/66632/detail/98589
1、当出现tools:replace="android:allowBackup"这个错误时,要原本的
tools:replace="android:hardwareAccelerated" //换成现在提示。
Manifest merger failed : Attribute application@allowBackup value=(true) from AndroidManifest.xml:36:9-35
is also present at [com.umeng.umsdk:huawei-umengaccs:1.2.1] AndroidManifest.xml:22:18-45 value=(false).
Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:34:5-415:19 to override.
2、当又提示android:hardwareAccelerated",你就蒙蔽了,该应用是在引入华为消息,引用umeng推送时出现的,想想与原本的两个在打架
Manifest merger failed : Attribute application@hardwareAccelerated value=(true) from AndroidManifest.xml:37:9-43
is also present at [:idauthsdk:] AndroidManifest.xml:35:9-44 value=(false).
Suggestion: add 'tools:replace="android:hardwareAccelerated"' to element at AndroidManifest.xml:34:5-415:19 to override.
3、把他写成tools:replace="android:hardwareAccelerated,android:allowBackup"这个就好了,多个
ENFI.CLOUD 百度下载加速器
下拉刷新
方法
onPullDownRefresh() {
console.log('onPullDownRefresh');
},
//还需在路由页面加入enablePullDownRefresh
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "主页",
"enablePullDownRefresh":true
}
微信登录中可以从微信中获取到code,iv,encryptedData,signature
看着别人拿着这些去验证用户是否真的登录了
研究了好久,code可以获取唯一标识openid就可以确定用户
也许是微信平台考虑到路由重定向安全问题等,需要session验证
不管了,就这样
$appid = ('WXAPPID');
$appsecret = ('WXSECRET');
$grant_type = "authorization_code"; //授权(必填)
$params = "appid=".$appid."&secret=".$appsecret."&js_code=".$code."&grant_type=".$grant_type;
$url = "https://api.weixin.qq.com/sns/jscode2session?".$params;
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true) ;
curl_setopt($curl, CURLOPT_BINARYTRANSFER, true) ;
curl_setopt($curl, CURLINFO_HEADER_OUT, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);
// 执行
$data = curl_exec($curl);
curl_close($curl);
return json_encode($data,true);
先 chattr -i /home/wwwroot/yoursite/.user.ini
再 rm -rf yoursite