InvoiceTicket.php 348 B

1234567891011121314151617181920
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\admin\model;
  4. use think\facade\Log;use think\Model;
  5. /**
  6. * @mixin \think\Model
  7. */
  8. class InvoiceTicket extends Model
  9. {
  10. public function getItemAttr($v){
  11. return json_decode($v,true);
  12. }
  13. public function setItemAttr($v){
  14. return json_encode($v,JSON_UNESCAPED_UNICODE);
  15. }
  16. }