Commit 2d47d020 authored by wwccw0591's avatar wwccw0591

c

parent 07466df5
......@@ -19,8 +19,13 @@ $http->on('request', function ($request, $response) {
$info=$respData['content'];
$memberDao=$info['className']::getInstance(\Our\DbNameConst::masterDBConnectName);
echo json_encode($info['params']);
$res=call_user_func_array(array($memberDao,$info['method']),$info['params']);
$res=isset($res)?$res:true;
if(empty($info['params'])){
$res=call_user_func_array(array($memberDao,$info['method']));
}else{
$res=call_user_func_array(array($memberDao,$info['method']),$info['params']);
}
$res=(isset($res)&&!empty($res))?$res:false;
unset($memberDao);
if($res!==false){
echo 'success';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment