- 腾讯AI服务--人脸验证 php接口调用问题?
我的小程序测试腾讯AI服务--人脸验证,我在云平台下测试没有问题, [图片] 我下PHP的接口文件(tencentcloud-sdk-php-master),放在自己的服务器根目录,代码一样,测试通不过。 <?php require_once '/TCloudAutoLoader.php'; //这里就通不过,提示HTTP 500错误 为什么??????? echo 'test'; /** use TencentCloud\Common\Credential; use TencentCloud\Common\Profile\ClientProfile; use TencentCloud\Common\Profile\HttpProfile; use TencentCloud\Common\Exception\TencentCloudSDKException; use TencentCloud\Iai\V20180301\IaiClient; use TencentCloud\Iai\V20180301\Models\VerifyFaceRequest; echo 'test'; * try { * $cred = new Credential("Axxxxxxvxsdgsdgsdc4", "jxxxxxxxxxxxxxxxxxxxxxxxxxnh"); * $httpProfile = new HttpProfile(); * $httpProfile->setEndpoint("iai.tencentcloudapi.com"); * * $clientProfile = new ClientProfile(); * $clientProfile->setHttpProfile($httpProfile); * $client = new IaiClient($cred, "ap-chengdu", $clientProfile); * $req = new VerifyFaceRequest(); * * $params = '{"Url":"http://118xxxxxxxxxxxxx052.jpg","PersonId":"136xxxxxx52"}'; * $req->fromJsonString($params); * $resp = $client->VerifyFace($req); * print_r($resp->toJsonString()); * } * catch(TencentCloudSDKException $e) { * echo $e; * } */
2019-05-28 - getConnectedWifi为什么要启用手机位置信息才能用?
安卓系统,为什么要启用手机位置信息才能用???为什么要重新开启程序signalStrength才能有新的变化?????? getConnectedWifi:function(){ var that = this that.stopWifi(); that.startWifi(); wx.getConnectedWifi({ success: function(res){ console.log(res); that.setData({ message2: res.wifi.SSID}); that.setData({ message3: res.wifi.signalStrength}); }, fail:function(err){ console.log(err); that.setData({ message2: err.errCode}); //'失败''失败' } }) },
2019-05-27 - getConnectedWifi的signalStrength强弱无变化99
安卓系统,代码如下 ,当前连接,距WIFI点远近,手机显示强弱环境,getConnectedWifi返回的wifi.signalStrength都为99是怎么回事? getConnectedWifi:function(){ var that = this that.stopWifi(); that.startWifi(); wx.getConnectedWifi({ success: function(res){ console.log(res); that.setData({ message2: res.wifi.SSID}); that.setData({ message3: res.wifi.signalStrength}); }, fail:function(err){ console.log(err); that.setData({ message2: err.errCode}); //'失败''失败' } }) },
2019-05-24