no message
This commit is contained in:
parent
692a89bae6
commit
ea6470a3f5
@ -105,11 +105,13 @@ final class Coupon extends Base
|
|||||||
return "没找到这个id";
|
return "没找到这个id";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$aJson = $this->ForMatEn($aJson);
|
||||||
|
|
||||||
$oCoupon->id = $aJson["id"];
|
$oCoupon->id = $aJson["id"];
|
||||||
$oCoupon->name = $aJson["name"];
|
$oCoupon->name = $aJson["name"];
|
||||||
$oCoupon->code = $aJson["code"];
|
$oCoupon->code = $aJson["code"];
|
||||||
$oCoupon->content = json_encode($aJson["content"]);
|
$oCoupon->content = $aJson["content"];
|
||||||
$oCoupon->limit = json_encode($aJson["limit"]);
|
$oCoupon->limit = $aJson["limit"];
|
||||||
$oCoupon->create_time = $aJson["create_time"];
|
$oCoupon->create_time = $aJson["create_time"];
|
||||||
$oCoupon->expire_time = $aJson["expire_time"];
|
$oCoupon->expire_time = $aJson["expire_time"];
|
||||||
$oCoupon->front_show = $aJson["front_show"];
|
$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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user