Explorar el Código

fix(merchant): 修复商户贡献数据创建时间格式问题

- 添加时间戳转换确保create_time字段为正确的时间戳格式
- 防止因时间格式不一致导致的数据处理错误
shichen hace 4 meses
padre
commit
c3c6e6e160
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      app/common/dao/system/merchant/MerchantContributionDao.php

+ 2 - 0
app/common/dao/system/merchant/MerchantContributionDao.php

@@ -40,6 +40,8 @@ class MerchantContributionDao extends BaseDao
40 40
         } catch (\Exception $e) {
41 41
 
42 42
         }
43
+        // 类型转换
44
+        $data['create_time'] = strtotime($data['create_time']);
43 45
         return MerchantContributionEntity::newInstance($data);
44 46
     }
45 47
 }