ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
* 创建视图 | 传入参 | 说明 | | --- | --- | | name | [ 必填 ] 视图名称 | | arr | [ 必填 ] 对应字段数组 ( 原字段 => 视图字段 ) | | opt | [ 必填 ] 处理方式 ( 1 union all ) | | other | [ 选填 ] 设置数组 | | - echo | [ 选填 ] 只输出语句( 1是 0否 ) | | 回调参 | 说明 | | --- | --- | | succeed | 执行状态(1成功 0失败) | | msg | 提示信息 | | yuju | 输出语句 | | [ sql ] | echo启用时直接输出语句 | * 案例 ~~~ $field = []; $obj = []; $obj['sm_id'] = 'sm_id'; $obj['account'] = 'account'; $field['sbh_manage'] = $obj; $obj = []; $obj['u_id'] = 'u_id'; $obj['account'] = 'account'; $field['user'] = $obj; $back = $D_P->view("test",$field,1); $back = $D_P->view("test",$field,1,['echo'=>1]); ~~~