...
|
...
|
@@ -432,12 +432,18 @@ class OrderController extends HomeBaseController |
|
|
{
|
|
|
require EXTEND_PATH . '/alipay/config.php';
|
|
|
require_once EXTEND_PATH . '/alipay/wappay/service/AlipayTradeService.php';
|
|
|
$arr=$_POST;
|
|
|
$arr = $_POST;
|
|
|
$alipaySevice = new AlipayTradeService($config);
|
|
|
$alipaySevice->writeLog(var_export($_POST,true));
|
|
|
if($result = $alipaySevice->check($arr)) {
|
|
|
Db::name('user')->where(['id'=>10])->setInc('balance', 1);
|
|
|
$alipaySevice->writeLog(var_export($_POST, true));
|
|
|
if ($result = $alipaySevice->check($arr)) {
|
|
|
Db::name('user')->where(['id' => 10])->setInc('balance', 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//支付宝同步通知
|
|
|
public function alipayNotifys()
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|