Commit 47b30e8d authored by liuyuzhen's avatar liuyuzhen

店铺扫码关注个问题

parent 5395eb15
...@@ -124,7 +124,7 @@ class FavoritesStoreModel extends \DAO\AbstractModel { ...@@ -124,7 +124,7 @@ class FavoritesStoreModel extends \DAO\AbstractModel {
$insertAllSql .= $addSql; $insertAllSql .= $addSql;
if ($i % 1000 == 0 && $i != 0) { if ($i % 1000 == 0 && $i != 0) {
$insertAllSql = rtrim($insertAllSql, ','); $insertAllSql = rtrim($insertAllSql, ',');
$insertAllSql .= 'ON DUPLICATE KEY UPDATE fav_time=VALUES (fav_time)'; $insertAllSql .= 'ON DUPLICATE KEY UPDATE fav_time=VALUES (fav_time),fav_from = VALUES (fav_from)';
$one = $this->db->insert($this->_tableName)->query($insertAllSql); $one = $this->db->insert($this->_tableName)->query($insertAllSql);
if (!$one) { if (!$one) {
$error++; $error++;
......
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