소스 검색

refactor(order): 修改bug

shichen 4 달 전
부모
커밋
e09dab5e2c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/common/dao/system/merchant/MerchantContributionDao.php

+ 1 - 1
app/common/dao/system/merchant/MerchantContributionDao.php

@@ -41,7 +41,7 @@ class MerchantContributionDao extends BaseDao
41 41
 
42 42
         }
43 43
         // 类型转换
44
-        $data['create_time'] = strtotime($data['create_time']);
44
+        if (!empty($data)) $data['create_time'] = strtotime($data['create_time']);
45 45
         return MerchantContributionEntity::newInstance($data);
46 46
     }
47 47
 }