...
|
...
|
@@ -65,6 +65,7 @@ class Pay extends Api |
|
|
$update['paytime'] = time();
|
|
|
$update['expirationtime'] = $update['paytime'] + 86400*7;
|
|
|
$update['finish_status'] = 1;
|
|
|
Db::name('teacher')->where('id',$order['teacher_id'])->setInc('help_num');
|
|
|
} else { // 用户支付失败
|
|
|
$update['status']=1;
|
|
|
}
|
...
|
...
|
@@ -91,6 +92,7 @@ class Pay extends Api |
|
|
$coupon['createtime'] = time();
|
|
|
$coupon['expirationtime'] = $coupon['createtime']+7*86400;
|
|
|
Db::name('coupon')->insertGetId($coupon);
|
|
|
Db::name('teacher')->where('id',$order['teacher_id'])->setInc('help_num');
|
|
|
} else { // 用户支付失败
|
|
|
$update['status']=1;
|
|
|
}
|
...
|
...
|
@@ -105,6 +107,7 @@ class Pay extends Api |
|
|
$update['paytime'] = time();
|
|
|
$update['expirationtime'] = $update['paytime'] + 86400*7;
|
|
|
$update['finish_status'] = 1;
|
|
|
Db::name('teacher')->where('id',$order['teacher_id'])->setInc('help_num');
|
|
|
} else { // 用户支付失败
|
|
|
$update['status']=1;
|
|
|
}
|
...
|
...
|
|