Open Leslack-hub opened 5 years ago
错误信息 An Error occurred while handling another error: yii\base\InvalidArgumentException: Response content must not be an array. in /www/vendor/yiisoft/yii2/web/Response.php:1063 Stack trace:
Previous exception: yii\base\InvalidConfigException: The directory does not exist: /www/app/web/assets in /www/vendor/yiisoft/yii2/web/AssetManager.php:213 Stack trace:
服务端 <?php namespace app\modules\member\controllers;
use app\modules\bbs\models\Attached; use Hprose\Yii\Controller; use Hprose\Yii\Server;
class CoreController extends Controller{ /**
@return mixed */ public function actionUser() { $service = new Attached();
$server = new Server();
$server->addInstanceMethods($service);
return $server->start();
} }
客服端 public function actionIndex() { $user = new Client('http://app.leslack.local/member/core/user'); $uid = $user->hello([ 'uid' => '22222', ]); }
你的代码看不到。
来自一名小白的 提问 最想想使用hprose 这是我的错误信息 ![Uploading image.png…]() 这个是服务端代码 ![Uploading image.png…]() 客户端 ![Uploading image.png…]() 麻烦帮我看下是哪里的问题呢,hprose的资料实在太少了 没有找到 谢谢了