Commit 55c3e4b4 authored by zw's avatar zw

bug

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