请确认您的proc文件里的返回 正确代码:
var page = require('webpage').create(),
response = {};
page.open ('{{ input.getUrl() }}','{{ input.getMethod() }}','{{ input.getBody() }}',function (status) {
page.includeJs('http://upcdn.b0.upaiyun.com/libs/jquery/jquery-2.0.2.min.js', function($includeJsEvent){
response.content = page.evaluate(function (status) {
return $('body').html();
});
console.log(JSON.stringify(response));
phantom.exit();
});
});
必须是JSON.stringify()转json才可以,而且看下是否关闭了debugger:
$client->getEngine()->debug(false);//允许或禁止调试|如果是true必须改为false