聯(lián)系官方銷售客服
1835022288
028-61286886
從定時(shí)表提取內(nèi)容,然后做發(fā)布動(dòng)作,提示 Operand should contain 1 column(s)
$times = \Phpcmf\Service::M()->table(SITE_ID.'_'.$dir.'_time')->get($rt['code']);
\Phpcmf\Service::C()->_module_init($dir);
$t = \Phpcmf\Service::C()->content_model->post_time($times);
但是,根據(jù)采集接口說(shuō)明做的數(shù)據(jù)格式提交上去
$rt = \Phpcmf\Service::C()->content_model->save_content(0, $save);
也是提示這么個(gè)錯(cuò)誤 Operand should contain 1 column(s)
請(qǐng)問(wèn)有知道解決辦法的嗎?
Operand should contain 1 column(s)
錯(cuò)誤文件:/www/wwwroot/eros.com/dayrui/CodeIgniter/System/Database/BaseConnection.php(647)
回復(fù)@小孟學(xué)編程
\Phpcmf\Service::C()->content_model->post_time
用官方的發(fā)布理論上不會(huì)出現(xiàn)多余字段
錯(cuò)誤日志出來(lái)是數(shù)組被括號(hào)括起來(lái)了
但是明明打印傳遞數(shù)據(jù)是傳的數(shù)組
、
入庫(kù)之前你要把他轉(zhuǎn)換成字符串,不能以數(shù)組來(lái)入庫(kù)啊