我使用第三方支付解决方案在我的应用程序。
会员付款后(3-4秒),第三方支付网站将重定向会员我们的网站。
同时,支付网站向我们的网站发送关于每一笔付款的请求。
如果支付信息请求与重定向用户请求一致,系统将节省两次。为了防止两次录音,我在DB上为每次付款使用了唯一的ID。
$unique_id = $_GET['unique_id'];
## ask the DB this this unique ID exist?
if($exist){
//update some tables
//delete the unique id
}
else{
//it was d
试图只检索没有支付电子商务网站费用的订单。
SELECT * FROM orders_list
WHERE status CONTAINS (type IN ['payed'])
AND status *not* CONTAINS (type IN ['payed'])
或
SELECT * FROM orders_list
WHERE status CONTAINS (type IN ['payed'])
AND status CONTAINS (type *not* IN ['payed'])
我怎样才能做这个查询?
谢谢