瀏覽代碼

Merge branch 'dev-sc-260204' into dev

shichen 5 月之前
父節點
當前提交
44ab9952ea
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      app/common/repositories/shared/SharedProsperityRecommendConfigRepository.php

+ 6 - 0
app/common/repositories/shared/SharedProsperityRecommendConfigRepository.php

@@ -68,6 +68,12 @@ class SharedProsperityRecommendConfigRepository extends BaseRepository
68 68
     {
69 69
         $id = $params['id'];
70 70
         unset($params['id']);
71
+
72
+
73
+        if (!is_numeric($params['consume']) || $params['consume'] == 0) {
74
+            $params['consume'] = null;
75
+        }
76
+
71 77
         if (!$this->dao->update($id, $params)) {
72 78
             return false;
73 79
         }