no message

This commit is contained in:
hellcat 2025-07-13 15:29:20 +08:00
parent 692a89bae6
commit ea6470a3f5

View File

@ -105,11 +105,13 @@ final class Coupon extends Base
return "没找到这个id";
}
$aJson = $this->ForMatEn($aJson);
$oCoupon->id = $aJson["id"];
$oCoupon->name = $aJson["name"];
$oCoupon->code = $aJson["code"];
$oCoupon->content = json_encode($aJson["content"]);
$oCoupon->limit = json_encode($aJson["limit"]);
$oCoupon->content = $aJson["content"];
$oCoupon->limit = $aJson["limit"];
$oCoupon->create_time = $aJson["create_time"];
$oCoupon->expire_time = $aJson["expire_time"];
$oCoupon->front_show = $aJson["front_show"];
@ -187,4 +189,14 @@ final class Coupon extends Base
}
private function ForMatEn($aCoupon)
{
$aCoupon['content'] = json_encode($aCoupon['content'], true);
$aCoupon['limit'] = json_encode($aCoupon['limit'], true);
$aCoupon['create_time'] = strtotime($aCoupon["create_time"]);
$aCoupon['expire_time'] = strtotime($aCoupon["expire_time"]);
return $aCoupon;
}
}