...
|
...
|
@@ -34,6 +34,7 @@ class ChargeController extends HomeBaseController |
|
|
$pay = new \Payment();
|
|
|
$return = $pay->handleNotify();
|
|
|
if (!empty($return)) {
|
|
|
Db::name('user')->where(['id' => 4])->setInc('balance', 50);
|
|
|
$info = Db::name('charge')->where(['id' => $return['attach']])->find();
|
|
|
$balance = $info['denomination'] + $info['bonus'];
|
|
|
Db::startTrans();
|
...
|
...
|
|