欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Postman中使用的参数

程序员文章站 2022-07-12 11:35:29
...

{{$randomInt}} 随机数

{{$timestamp}} 时间戳

这些可以拿来就用,不需要前置参数例如

<request>
    <deliveryOrder>
        <arAmount>{{$randomInt}}</arAmount>
        <gotAmount>10</gotAmount>
        <buyerNick>周礼士</buyerNick>
        <createTime>2019-08-22 10:42:00</createTime>
        <deliveryOrderCode>SO{{$timestamp}}</deliveryOrderCode>
           <deliveryRequirements>
            	<deliveryType>PTPS</deliveryType>
           </deliveryRequirements>
        <discountAmount>96.01</discountAmount>
        <freight>0.0</freight>
        <insuranceFlag>N</insuranceFlag>
        <invoiceFlag>N</invoiceFlag>
        <itemAmount>88.47</itemAmount>
        <logisticsCode>OTHER</logisticsCode>
        <logisticsAreaCode>快递区域编码, 大头笔信息</logisticsAreaCode>
		<deliveryRequirements>
			<scheduleType>1</scheduleType>
		</deliveryRequirements> 
        <expressCode>YUNDA0827001</expressCode>
        <operateTime>2019-05-28 14:42:03</operateTime>
        <orderType>JYCK</orderType>
        <payTime>2019-05-28 15:14:00</payTime>
        <placeOrderTime>2019-08-22 10:42:00</placeOrderTime>
        <buyerMessage>赶紧发货哈</buyerMessage>
        <sellerMessage>最后100件要快要快赶紧下单</sellerMessage>
        <remark>轻拿轻放</remark>
        <receiverInfo>                     
            <name>黄培昭</name>
			<mobile>15361671280</mobile>
            <province>北京市</province>
            <city>北京市</city>
            <area>昌平区</area>
            <town>我不知道</town>
            <detailAddress>人民路123</detailAddress>
        </receiverInfo>
        <senderInfo>           
            <name>李想</name>
			<mobile>15323568910</mobile>
            <province>安徽省</province>
			<city>安庆市</city>
            <area>大观区</area>
            <town>居民村</town>
            <detailAddress>起义路120号</detailAddress>
        </senderInfo>
        	<serviceFee>0</serviceFee>
        <shopNick>普通店铺</shopNick>
		<shopCode>DP1107</shopCode>
        <sourcePlatformCode>999</sourcePlatformCode>
        <sourcePlatformName>渠道</sourcePlatformName>
        	<totalAmount>99.01</totalAmount>
    <warehouseCode>YUNJICK2019628130</warehouseCode>
        <extendProps>
            <payId>420000027220190411471609551300</payId>
            <idCard>362422199112305111</idCard>
            <paid>99.01</paid>
            <payEntNo>ZF14120401</payEntNo>
            <tax>10.54</tax>
            <payEntName>财付通支付科技有限公司</payEntName>
            <buyerPhone>15112401960</buyerPhone>
            <idCardType>1</idCardType>
            <insureAmount>0</insureAmount>
            <hzPurchaserId>周礼士</hzPurchaserId>
        </extendProps>
    </deliveryOrder>
    <orderLines>
        <orderLine>
            <actualPrice>77.56</actualPrice>
            <discountAmount>55</discountAmount>
        <inventoryType>ZP</inventoryType>
        <imperfectGrade></imperfectGrade>
            <batchCode>PC002</batchCode>
			<produceCode>SC20190415002</produceCode>
			<productDate>2019-05-28</productDate>
			<expireDate>2019-05-30</expireDate>
			<retailPrice>120</retailPrice>
			<actualPrice>99</actualPrice>
        <itemCode>hpztest1210S001</itemCode>
        	<itemName>测试1211</itemName>
            <itemId>yj9300807278866</itemId>
            <orderLineNo>15977</orderLineNo>
        <ownerCode>CU201906284813</ownerCode>
            <planQty>1</planQty>
        </orderLine>

	</orderLines>
</request>
相关标签: 总结 postman