pay 和 put的用法

pay
put on: [ .put'ɔn ]

穿上
vt. 穿上,戴上


例句与用法:
1. He put on a thick sweater since it was cold in the morning.
早晨很冷,他穿上了一件厚毛衣。

2. She put on dark glasses as a protection against the strong light.
她戴上墨镜以防强光的照射。

3. The boy put on his breeches and went out for a ride.
男孩穿上马裤,出去骑马了。

4. The old man put on his spectacles and started reading.
老人戴上眼镜开始看书。

5. He put on a coat with a fur lining.
他穿上一件有毛皮衬里的外衣。

6. She put on her silken gown before going to bed.
睡觉前,她穿上丝质的睡衣。

7. There were so many people that the company put on extra buses.
人数太多,公司加开了公共汽车。

8. The man put on his smock and went out.
那人穿上罩衫,然后走了出去。

 

put off:

推迟,拖延
v. 延期


例句与用法:
1. Don't put me off when I'm trying to concentrate.
我正要集中注意力呢,别打搅我。

2. He's a good salesman, but his offhand manner does tend to put people off.
他是个很好的推销员,可是他那随便的态度容易使人产生反感。

3. She keeps putting off going to the dentist.
她老是拖延著不去看牙病。

4. I asked the bus driver to put me off near the town centre.
我请公共汽车司机在快到市中心时让我下车.

5. This afternoon's meeting will have to be put off.
今天下午的会议得延期.

6. We've had to put our wedding off until September.
我们得把婚礼延期到九月举行.

7. The accident put her off driving for life.
这次事故使她一辈子不愿意再开车了.

8. She was put off maths by a bullying and incompetent teacher.
她对数学失去了兴趣, 因为老师仗势欺人又没教学能力.

put out:

熄灭


例句与用法:
1. The fire was put out soon.
火很快就被熄灭了。

2. Far water does not put out near fire.
【谚】远水救不了近火。

3. The government put out a warning against flood.
政府发出了预防水灾的警告。

4. I'll try to put out some feelers to gauge people's reactions to our proposal.
我想试探一下, 看看人们对我们建议的反应.

5. Only the shell of the factory was left after the fire had been put out.
大火扑灭之后, 工厂只剩下个空架子了.

put away:

vt. 处理掉(吃,把...收好,拿开,排斥)


例句与用法:
1. He was put away for ten years for armed robbery.
他因持械抢劫而关押了十年。

2. Put your toys away in the cupboard, when you've finished playing.
你把玩具玩儿完了以后放进柜子里去.

3. He must have put away half a bottle of whisky last night.
昨晚他大概喝了半瓶威士忌酒.

4. I don't know how he manages to put it all away!
我真不知道他怎麽吃得这样多!

5. She went a bit odd and had to be put away.
她有点不正常, 只好送进了疯人院.

6. She's got a few thousand pounds put away for her retirement.
她已存了几千镑以备退休之用.

7. It's time to put away those foolish ideas and become serious.
是打消那些愚蠢想法, 认真对待的时候了。

8. This vase wasn't wiped out properly before it was put away.
这个花瓶没擦乾净就收起来了.


put up:

vt. 举起(推荐,提供,提高,建造,贮备)


例句与用法:
1. I can't believe he'd do a thing like that on his own. He must have been put up to it by some of the older boys.
我不相信他会主动干那种事,一定是有些年龄大的男孩子叫他干的。

2. We want to put you up for club treasurer.
我们想请你担任俱乐部的司库.

3. My landlord's threatening to put the rent up by 10 a week.
我的房东要挟说要把每周租金提高10英镑.

4. To join the club you have to be put up by an existing member.
要加入俱乐部必须有一位会员做介绍人.

5. We can put you up for the night.
我们可以招待你过夜.

6. They surrendered without putting up much of a fight.
他们没怎麽抵抗就投降了.

7. I don't know how she puts up with him/his cruelty to her.
我不明白她怎麽能容忍他[忍受他的虐待].

8. The Green Party hopes to put up a number of candidates in the General Election.
绿党希望提出若干候选人参加大选.
pay
[peI]
vt., vi.
paid, paying
1.付(款);支付;缴纳
He paid £5 for the book.
他买这本书花了五英镑。
"I'd like to pay by cheque, please."
我想用支票支付。
I paid $150 for that walki-lookie.
我花了一百五十美元买了那台轻便电视摄影机。
"The international corporation paid $50,000 for the firm, and $2,000 for its goodwill."
"这家跨国公司用五万美元买下了这家商号,两千美元买下了它的信誉。"
2.付清(账单、债务)
Can you lend me some money - I can pay you back tomorrow.
你能借给我点儿钱吗?我明天就可以还给你。
Have I paid you back the $20 you lent me?
你借给我的二十美元我还给你了吗?
Have you paid the electricity bill for the last month yet?
你缴了上个月的电费了吗?
3.生利;有…收益;值得(麻烦);合算
It pays me to keep that stock.
持有那种股票对我有利。
It will pay to read a dictionary if you have time.
"如果你有时间,翻翻词典是值得的。"
It will pay in the long run if the setting off of firecrackers is effectively banned in the cities.
"从长远来看,在城市里真正有效地禁放鞭炮,是值得的。"
4.做;致;说
pay a visit
访问
pay a call
拜会
pay a compliment
致意
pay one's respects
致敬
The workers paid homage to the king when he came to the factory for a visit.
"当国王来到工厂参观时,工人们向他致敬。"
5.给;与
pay attention
注意
6.遭受惩罚
She has paid the penalty for her theft.
她犯的偷窃罪已受到惩罚。
He paid dearly for his careless slip.
他为自己粗心的失误付出了巨大的代价。

pay
n.
工资;薪金;津贴

in the pay of
被收买的;被豢养的;当狗腿子的
This man is in the pay of the enemy.
此人是被敌人收买的。

pay back
报复 (= pay off, pay out, serve out)
I'll certainly pay you back for what you did to me!
"你那样对待我,我一定要回敬你的!"
偿还;偿付
How can I pay you back for all your kindness?
你的这番好意我该怎么报答呢?
pay off
还清;偿清
报复;偿还
结清工资解雇(某人)
成功
Did your plan pay off?
你的计划成功了吗?
Our plan certainly paid off; it was a great idea.
"我们的计划当然成功了,那是个很好的主意。"
pay out
花费;支出
I paid out a lot of money for that car.
为了那辆汽车我花了不少钱。
放松(绳子);放出
pay up
(不情愿地)付清;还清(债务)

pay

vt.
1. 付,支付;付款给[O1][(+for/to)]
She paid the money to me.
她将钱付给了我。
He didn't pay me anything.
他没有付给我任何报酬。
I paid a very high price for the house.
我出了很高的价钱买下了这房子。
2. 偿还;补偿;向...报复[(+out)]
I've paid him out for the trick he played on me.
他作弄我,我已对他进行了报复。
Pay me the money you owe me.
把你欠的钱还我。
3. 把(钱)存(银行)[(+in/into)]
4. 对...有利
5. 给予(注意);致以(问候);进行(访问)[(+to)]
We'll pay a visit to Japan this winter.
今年冬天我们要去访问日本。
vi.
1. 付款;偿还债务
I'll pay by check.
我将用支票付款。
2. 有利,划算
It will pay to be kind to others.
好心会有好报。
It pays to learn a foreign language.
学外语是值得的。
3. 生利;(工作等)有报酬[Q]
This job pays well.
这工作报酬好。
4. 付出代价;受到惩罚
n.[U]
1. 薪俸;报酬
The miners went on strike for higher pay.
矿工举行罢工,要求增加工资。
2. 报偿;惩罚

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,以下是Spring Boot 2.0小程序支付功能实现weixin-java-pay的完整代码: 1. 引入weixin-java-pay依赖 在pom.xml文件中添加以下依赖: ```xml <dependency> <groupId>com.github.binarywang</groupId> <artifactId>weixin-java-pay</artifactId> <version>3.8.0</version> </dependency> ``` 2. 配置微信支付参数 在application.yml或application.properties文件中配置微信支付参数,例如: ```yaml wx: pay: appId: xxx mchId: xxx mchKey: xxx notifyUrl: xxx ``` 3. 创建订单 在程序中创建订单,并将订单信息封装到UnifiedOrderRequest对象中,例如: ```java UnifiedOrderRequest request = new UnifiedOrderRequest(); request.setBody("测试订单"); request.setOutTradeNo("2018061500000001"); request.setTotalFee(1); request.setSpbillCreateIp("127.0.0.1"); request.setTradeType(TradeType.JSAPI); request.setOpenid("xxxxxx"); ``` 4. 调用微信支付接口 使用WxPayService对象调用微信支付接口,例如: ```java WxPayService wxPayService = new WxPayServiceImpl(); WxPayUnifiedOrderResult result = wxPayService.unifiedOrder(request); ``` 5. 获取支付参数 根据微信支付接口返回的结果,获取支付参数并返回给小程序,例如: ```java WxPayJsapiSignature signature = wxPayService.createJsapiSignature("prepay_id=" + result.getPrepayId(), false); Map<String, String> payParams = new HashMap<>(); payParams.put("appId", signature.getAppId()); payParams.put("timeStamp", signature.getTimestamp()); payParams.put("nonceStr", signature.getNonceStr()); payParams.put("package", signature.getPackageValue()); payParams.put("signType", signature.getSignType()); payParams.put("paySign", signature.getPaySign()); return payParams; ``` 完整代码如下: ```java @RestController @RequestMapping("/pay") public class PayController { @Autowired private WxPayService wxPayService; @Value("${wx.pay.appId}") private String appId; @PostMapping("/unifiedOrder") public Map<String, String> unifiedOrder(@RequestParam("openid") String openid, @RequestParam("totalFee") int totalFee) throws WxPayException { // 创建订单 UnifiedOrderRequest request = new UnifiedOrderRequest(); request.setBody("测试订单"); request.setOutTradeNo("2018061500000001"); request.setTotalFee(totalFee); request.setSpbillCreateIp("127.0.0.1"); request.setTradeType(TradeType.JSAPI); request.setOpenid(openid); // 调用微信支付接口 WxPayUnifiedOrderResult result = wxPayService.unifiedOrder(request); // 获取支付参数 WxPayJsapiSignature signature = wxPayService.createJsapiSignature("prepay_id=" + result.getPrepayId(), false); Map<String, String> payParams = new HashMap<>(); payParams.put("appId", signature.getAppId()); payParams.put("timeStamp", signature.getTimestamp()); payParams.put("nonceStr", signature.getNonceStr()); payParams.put("package", signature.getPackageValue()); payParams.put("signType", signature.getSignType()); payParams.put("paySign", signature.getPaySign()); return payParams; } @PostMapping("/notify") public String notify(HttpServletRequest request) throws WxPayException { // 处理支付结果通知 WxPayOrderNotifyResult result = wxPayService.parseOrderNotifyResult(request.getInputStream()); // 处理业务逻辑,并返回响应给微信支付系统 return WxPayNotifyResponse.success("处理成功"); } } ``` 其中,/pay/unifiedOrder接口用于创建订单并获取支付参数,/pay/notify接口用于处理支付结果通知。注意,支付结果通知的处理需要验签,可以使用WxPayService对象的checkSignature方法来验签,或者使用WxPayConfig对象的checkSignature方法来验签。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值