我认为这很容易,但让我有点疯狂
我有这个:
Transaction::
where('seller_id', $this->id)->
Orwhere('buyer_id', $this->id )->
whereIn('concept', ['Lemonway','Paypal'])->
where('status', '=', 'ok')
->get();
因此,如果我明确指定status = 'ok'
为什么选择status = Pending transaction
?
答案 0 :(得分:2)
您需要使用where()
closure进行参数分组,例如:
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063'
}
r = requests.get('https://www.zomato.com', headers=headers)