| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- namespace common\helpers\printer;
- class OrderContent
- {
-
- public $mall_name;
- public $order_type;
- public $payment_type; //支付类型
- public $send_type_text;
- public $order_no; //订单编号
- public $created_at; //创建时间
- public $is_attr; //
- public $goods_list; //商品列表
- public $original_goods_price; //商品总价(优惠前)
- public $shipping_money; //运费
- public $coupon_money; //优惠券支付金额
- public $score; //使用积分
- public $score_money; //积分抵扣金额
- public $member_discount_price; //会员优惠价(新版废弃)
- public $back_price; //后台优惠(新版废弃)
- public $pay_money; //实付金额
- public $shipping_type; //订单配送方式
- public $receiver_name; //收件人姓名
- public $mobile; //收件人电话
- public $address; //收件人地址
- public $order_status; //订单状态
- public $store_name; //
- public $store_mobile; //
- public $store_address; //
- public $remark; //备注
- public $shippingTypText;
- public $plugin_data = [];
- public function setAttribute($array = [])
- {
- foreach ($array as $key => $item) {
- if (property_exists($this, $key)) {
- $this->$key = $item;
- }
- }
- }
- public function __set($name, $value)
- {
- $setter = 'set' . $name;
- if (method_exists($this, $setter)) {
- $this->$setter($value);
- } else {
- throw new \Exception(get_class($this) . '不存在属性:' . $name);
- }
- }
- }
|