正在显示
2 个修改的文件
包含
12 行增加
和
6 行删除
@@ -432,12 +432,18 @@ class OrderController extends HomeBaseController | @@ -432,12 +432,18 @@ class OrderController extends HomeBaseController | ||
432 | { | 432 | { |
433 | require EXTEND_PATH . '/alipay/config.php'; | 433 | require EXTEND_PATH . '/alipay/config.php'; |
434 | require_once EXTEND_PATH . '/alipay/wappay/service/AlipayTradeService.php'; | 434 | require_once EXTEND_PATH . '/alipay/wappay/service/AlipayTradeService.php'; |
435 | - $arr=$_POST; | 435 | + $arr = $_POST; |
436 | $alipaySevice = new AlipayTradeService($config); | 436 | $alipaySevice = new AlipayTradeService($config); |
437 | - $alipaySevice->writeLog(var_export($_POST,true)); | ||
438 | - if($result = $alipaySevice->check($arr)) { | ||
439 | - Db::name('user')->where(['id'=>10])->setInc('balance', 1); | 437 | + $alipaySevice->writeLog(var_export($_POST, true)); |
438 | + if ($result = $alipaySevice->check($arr)) { | ||
439 | + Db::name('user')->where(['id' => 10])->setInc('balance', 1); | ||
440 | } | 440 | } |
441 | } | 441 | } |
442 | 442 | ||
443 | + //支付宝同步通知 | ||
444 | + public function alipayNotifys() | ||
445 | + { | ||
446 | + | ||
447 | + } | ||
448 | + | ||
443 | } | 449 | } |
@@ -16,10 +16,10 @@ class AlipayTradeService { | @@ -16,10 +16,10 @@ class AlipayTradeService { | ||
16 | public $gateway_url = "https://openapi.alipay.com/gateway.do"; | 16 | public $gateway_url = "https://openapi.alipay.com/gateway.do"; |
17 | 17 | ||
18 | //支付宝公钥 | 18 | //支付宝公钥 |
19 | - public $alipay_public_key = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArNEHZmEHK65rLQmuYhYpXTsWMFf3SPLfI0WNNjm6LeUBtD/3IocM/NrkOJZ3sRRCBY8qYOWvJANG6iq/Nae0Z4bmQ25qHIesnU2ev4PurT24AMEugJwG62KUrOfZo7fmjMTsyCdcCW7W0XYwYmcz6R3a6y/APENpb33kO4lls+ly3FmocitbmAVrIcb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nrGXg7Ewp3We9AQjqcBJntXaQ1uXUooizhPjK66kh8HS2VemUonsISBF0CgYEAzZog5kZKu2kens0tVpX0p7JFRSzuVuVXOuQjLsaZ81a1TPdASHVKhmAU7G6xEGJUhY+Et/KD7PEBDAxaTIXqzsEUWzMhNOuyaauf8dbL/GlPAo6BYMCcm8vC9k0FwfH6IZmGlr4gYi6ckaTJ9jiF9ppUPVVEWdK49kN9JCmJlesCgYEAzt4ue5YaBAVNFOlilHveA4pWZBhalkXE71fe3pTWJwyi4FSudUx7W3EkhWwDN/bdnHhFnOdGFsvdrFv/L7E0hZaDgLz7L+uKtsZfN567bFrxxUuFP9X4ng3mzVF8mOvY3VM3d3z8pNAgDmJCZFe9XGytIlv5ZpvSX08tlCOD6skCgYBu0wu01GLoDkuhEbvElmQgGKnaFdQLJugUKHEGf6rwTebAK+6MoByhvhzJLQloaXhh3fCOLr0J9Qa5ddcetHjTJaRRXIgjvICZERfQBhZCYoliOWpnuqswF29p0C6wUjyf699uVeGiyrk+kHMEs4cSXDHYNaP4PuvQYqSL34/4LQKBgQCuaFmh7j+kvebUxRaDRJmuhuYarzT3Hg86P6+wl6DRZL1Bs1DYW7ydkgOhCE5XqWUI6jEsD2aJInMDPNMghGmhA474ZGp5ZwEmIItNHgkvjsHcQupPKVEUbruOzVJDEILl3TH/JjG3XtZ6yPd8dFr3gSBdspvGVUmijHMSpl/3VQ=='; | 22 | + public $private_key; |
23 | 23 | ||
24 | //应用id | 24 | //应用id |
25 | public $appid = "2018101661696470"; | 25 | public $appid = "2018101661696470"; |
-
请 注册 或 登录 后发表评论