GithubHelp home page GithubHelp logo

hprose-yii's Issues

rpc将int变成科学计数法

源数据:
{ "refund_order_id":1870381757955251, }

转义成:
{ "refund_order_id":1.8703817579553E+15, }
请问这个如何解决?

hprose权限验证

调用hprose远程接口后,要用什么机制实现身份验证,判断是否有权限访问?
有类似过滤器的方式嘛,可否提供一下例子?

wiki 错误

分布式客户端处 discovery 单词错误写成了 discover 。。。。

调用服务问题

$user = new Client('http://localhost/core/user');
$uid = $user->create([
'name' => 'Hprose',
]);
这个create方法中的参数不是需要传入一个索引数组吗,为什么在hprose for yii wiki中的使用方式是传入关联数组呢?

http 同步调用方式出现报错 用异步方式无返回数据 是什么原因啊?

同步调用报错:
An Error occurred while handling another error:
exception 'ReflectionException' with message 'Method Hprose\HandlerManager::Hprose{closure}() does not exist'

异步调用数据返回:
object(Hprose\Future)#38 (4) { ["state":"Hprose\Future":private]=> int(0) ["value":"Hprose\Future":private]=> NULL ["reason":"Hprose\Future":private]=> NULL ["subscribers":"Hprose\Future":private]=> array(0) { } }

用的是官方文档里的代码稍微改了下
client.php

$user = \Hprose\Client::create ( 'http://localhost/hprose-server/user' );
$result = $user->hello ();
var_dump($result) ;
exit;

server.php

public function actionUser() {
		$service = new HproseUser ();
		
		$server = new Server ();
		$server->addInstanceMethods($service);
		
		return $server->start ();
	}

使用中遇到的问题

来自一名小白的 提问
最想想使用hprose 这是我的错误信息
Uploading image.png…
这个是服务端代码
Uploading image.png…
客户端
Uploading image.png…
麻烦帮我看下是哪里的问题呢,hprose的资料实在太少了 没有找到 谢谢了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.