截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OrderTrade.php 641B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\common\model\order;
  3. use app\common\basics\Models;
  4. class OrderTrade extends Models
  5. {
  6. /**
  7. * @notes 汇付斗拱参数
  8. * @param $fieldValue
  9. * @param $data
  10. * @return array
  11. * @author lbzy
  12. * @datetime 2023-10-23 17:28:25
  13. */
  14. function getHfdgParamsAttr($fieldValue, $data)
  15. {
  16. return $fieldValue ? ((array) json_decode($fieldValue, true)) : [];
  17. }
  18. function setHfdgParamsAttr($fieldValue, $data)
  19. {
  20. if (is_string($fieldValue)) {
  21. return $fieldValue;
  22. }
  23. return json_encode((array) $fieldValue, JSON_UNESCAPED_UNICODE);
  24. }
  25. }