ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~ protected $table = 'tuan_goods'; protected $json = ['goods_content']; public function setGoodsPriceAttr($value) { return $value*100; } public function setGoodsGroupPriceAttr($value) { return $value*100; } public function getGoodsPriceAttr($value) { return sprintf("%.2f",$value/100); } public function getGoodsGroupPriceAttr($value) { return sprintf("%.2f",$value/100); } ~~~