Commit 55c3e4b4 authored by zw's avatar zw

bug

parent 3ba0f452
......@@ -397,7 +397,7 @@ class DailyPaperService
* @param $cash
* @param $pos
* @param $other_bank
* @return array
* @return array|int
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
......
......@@ -56,7 +56,7 @@ class ODaily extends BaseModel{
public function addDaily($params){
Db::startTrans();
try {
$this->db_->insertAll($params);
$this->db_->insert($params);
Db::commit();
return 1;
} catch (\Exception $e) {
......
......@@ -55,7 +55,7 @@ class ODailyLog extends Model
public function addDailyCheck($params){
Db::startTrans();
try {
$this->db_->insertAll($params);
$this->db_->insert($params);
Db::commit();
return 1;
} catch (\Exception $e) {
......
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