Explorar o código

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

- 添加时间戳转换确保create_time字段为正确的时间戳格式
- 防止因时间格式不一致导致的数据处理错误
shichen hai 4 meses
pai
achega
c3c6e6e160
Modificáronse 1 ficheiros con 2 adicións e 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
 }