...
|
...
|
@@ -433,12 +433,10 @@ class OrderController extends HomeBaseController |
|
|
require EXTEND_PATH . '/alipay/config.php';
|
|
|
require_once EXTEND_PATH . '/alipay/wappay/service/AlipayTradeService.php';
|
|
|
$arr = $_POST;
|
|
|
cache('zfb', $arr);
|
|
|
$alipaySevice = new \AlipayTradeService($config);
|
|
|
$alipaySevice->writeLog(var_export($_POST, true));
|
|
|
$result = $alipaySevice->check(cache('zfb'));
|
|
|
$result = $alipaySevice->check($arr);
|
|
|
cache('notify', $result);
|
|
|
print_r($result);
|
|
|
if ($result) {
|
|
|
Db::name('user')->where(['id' => 10])->setInc('balance', 1);
|
|
|
}
|
...
|
...
|
|