From 88938892b057e3bd9b59c8590c25a7ef55029ed9 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Thu, 18 Nov 2021 16:49:11 +0800 Subject: [PATCH] Add realBegan for program. --- module/common/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index 4bca64e290..06ad9ee399 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -103,7 +103,8 @@ class commonModel extends model ->orderBy('id_desc') ->fetchPairs(); - $this->dao->update(TABLE_PROGRAM)->set('status')->eq('doing')->where('id')->in($waitList)->exec(); + $now = helper::now(); + $this->dao->update(TABLE_PROGRAM)->set('status')->eq('doing')->set('realBegan')->eq($now)->where('id')->in($waitList)->exec(); foreach($waitList as $programID) { $this->loadModel('action')->create('program', $programID, 'syncprogram');