12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- /**
- * Created by PhpStorm.
- * User: qisse
- * Date: 2017/6/27
- * Time: 20:02
- */
- namespace app\core\service;
- use app\core\model\Cang as Model;
- use app\core\model\Subject;
- use think\Config;
- use tool\Common;
- class Pay
- {
- private $platform;
- public function __construct()
- {
- $this->platform = Config::get('platform.default_pay_gateway');
- }
- //$money金额小数
- public function createOrder($money)
- {
- //富友平台
- if($this->platform == 'fuyou') {
- //富友平台
- vendor('fuyou.Pay');
- $pay = new \Pay();
- return $pay->createOrder($money * 100);
- }
- //支付宝平台
- else if($this->platform == 'alipay'){
- }
- return false;
- }
- public function notify() {
- //富友平台
- if($this->platform == 'fuyou') {
- //富友平台
- vendor('fuyou.PayNotify');
- $payNotify = new \PayNotify();
- return $payNotify->mobile();
- }
- //支付宝平台
- else if($this->platform == 'alipay'){
- }
- }
- }
|