Commit ce14b798 authored by liuyuzhen's avatar liuyuzhen

10分钟取消订单付款成功恢复订单问题

parent 090d4c3e
...@@ -229,6 +229,9 @@ class OrderModel extends \DAO\AbstractModel ...@@ -229,6 +229,9 @@ class OrderModel extends \DAO\AbstractModel
public function update($where, $data) public function update($where, $data)
{ {
$this->setDb(\Our\DbNameConst::masterDBConnectName); $this->setDb(\Our\DbNameConst::masterDBConnectName);
if(is_array($where)){
$where = $this->db->getSqlWhereByArray($where);
}
$data['gmt_update']=TIMESTAMP; $data['gmt_update']=TIMESTAMP;
$result = $this->db->update($this->_tableName)->where($where)->rows($data)->execute(); $result = $this->db->update($this->_tableName)->where($where)->rows($data)->execute();
\Our\Log::getInstance()->write($this->db->getLastSql(),'/data/log/applog'); \Our\Log::getInstance()->write($this->db->getLastSql(),'/data/log/applog');
......
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