...
|
...
|
@@ -398,12 +398,14 @@ class Pay extends Api |
|
|
if ($message['result_code'] === 'SUCCESS') {
|
|
|
if($data['status'] == 1) {
|
|
|
//支付成功,更新订单状态
|
|
|
$toporder['id'] = $data['id'];
|
|
|
$toporder['status'] = 2;
|
|
|
$toporder['paytime'] = time();
|
|
|
$money = $data['money'];
|
|
|
// 启动事务
|
|
|
Db::startTrans();
|
|
|
try {
|
|
|
Db::name('toporder')->update($toporder);
|
|
|
//判断用户充值金额是否大于等于8000
|
|
|
if ($data['money'] >= 8000) {
|
|
|
//大于等于的情况
|
...
|
...
|
|