This commit is contained in:
wangjinlei
2021-02-26 10:44:22 +08:00
parent d3b80b03c7
commit 04aef584a3
4 changed files with 207 additions and 1 deletions

View File

@@ -132,3 +132,11 @@ function add_usermsg($userid, $content, $url) {
$msgdata['ctime'] = time();
return $msg_obj->insert($msgdata);
}
function jsonSuccess($data){
return json(['code'=>0,'msg'=>'success','data'=>$data]);
}
function jsonError($msg){
return json(['code'=>1,'msg'=>$msg]);
}