福州网站建设>网站新闻>php技术

易联云测试打印数据

发布日期:2022-12-27浏览次数:430 来源:福州网站建设

  public static function testData(){
        $order = [
            'order_sn'          => date("Ymd").'88888888888',
            'create_time'       => date('Y-m-d H:i:s'),
            'consignee'         => '张先生',
            'mobile'            => '138888888888',
            'delivery_address'  => '广东省广州市天河区XXXX科技园',
            'user_remark'       => '这是用户备注',
            'order_goods'       => [
                [
                    'name'          => 'iPhone 11',
                    'spec_value_str'=> '全网通256G,银色',
                    'goods_num'     => '88',
                    'goods_price'   => '3689',
                    'total_price'   => '88888',
                ],
                [
                    'name'          => '小米手机Plus',
                    'spec_value_str'=> '全网通256G,黑色',
                    'goods_num'     => '88',
                    'goods_price'   => '3689',
                    'total_price'   => '88888',
                ],
                [
                    'name'          => '华为 P40',
                    'spec_value_str'=> '全网通256G,黑色',
                    'goods_num'     => '88',
                    'goods_price'   => '3689',
                    'total_price'   => '88888',
                ],
            ],
            'total_amount'      => '888888',  //商品总价
            'discount_amount'   => '80',      //优惠金额
            'shipping_price'    => '12',      //应付
            'order_amount'      => '222'      //应付金额
        ];
        return $order;
    }

以上是由福州网站建设的小编为你分享了"易联云测试打印数据"文章,如果你在这方面有什么问题,随时联系我们

php技术有关的文章
如果您有什么问题,欢迎咨询我们客服! 点击QQ咨询