Blame view

application/admin/command/Crud/stubs/mixins/datetime.stub 226 Bytes
2db47680   hexiaodong   chore: 初始提交 php 遗...
1
2
3
4
5
6
  
      public function {%methodName%}($value, $data)
      {
          $value = $value ? $value : (isset($data['{%field%}']) ? $data['{%field%}'] : '');
          return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
      }