联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
表单人工入库插入附表 为什么后台读不到内容呢
类型:迅睿CMS 更新时间:2020-08-23 07:43:26

表单人工入库


$rt = \Phpcmf\Service::M()->table_site("form_caiji_log")->insert(array('xingwei'=>$this->log_log['0'],'cwcg'=>'1'));

$data['tableid'] = floor($rt['code']/50000);

$data2['id'] = $rt['code'];

$data2['uid'] = (int)$this->member['uid'];

// 插入附表

$data2 = [];

\Phpcmf\Service::M()->table_site("form_caiji_log_data_".$data['tableid'])->insert($data2);


为什么后台读不到内容呢?

回帖
  • #1楼    迅睿框架创始人
    2020-08-23 07:43:26
    Chrome 0
    $rt = \Phpcmf\Service::M()->table_site("form_caiji_log")->insert(array('xingwei'=>$this->log_log['0'],'cwcg'=>'1'));
       $data['tableid'] = floor($rt['code']/50000);
       
       \Phpcmf\Service::M()->table_site("form_caiji_log")->update($rt['code'], ['tableid' => $data['tableid']]);
       
       // 插入附表
       $data2 = [];
       $data2['id'] = $rt['code'];
       $data2['uid'] = (int)$this->member['uid'];
       \Phpcmf\Service::M()->table_site("form_caiji_log_data_".$data['tableid'])->insert($data2);
    写反了