diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..723ef36f4e4f32c4560383aa5987c575a30c6535 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file diff --git a/php/bullshitClass.php b/php/bullshitClass.php new file mode 100644 index 0000000000000000000000000000000000000000..ef11c45229c30cc52c85cd230f3bd7d9c1fc43a1 --- /dev/null +++ b/php/bullshitClass.php @@ -0,0 +1,25 @@ +where(['out_trade_no' => $notifyData['out_trade_no']])->find(); + + if (!$order) {// 订单不存在则不处理 + echo 'SUCCESS'; + die; + } + + if ($notifyData['return_code'] === 'SUCCESS') { // 支付成功了 + // 1.将订单状态更新为已完成 + // 2.给用户的账户加钱 + } + } +} \ No newline at end of file