...
|
...
|
@@ -66,14 +66,14 @@ class Order extends Api |
|
|
'market_name' => Market::where('id',$post['market_id'])->value('market_name'),
|
|
|
],$post));
|
|
|
// 发起微信支付
|
|
|
// $Wechat = new Wechat;
|
|
|
// $openid = Db::name('third')->where('user_id',$user['id'])->value('openid');
|
|
|
// $this->model['deposit'] = 0.01; //测试金额
|
|
|
// if(!$payment = $Wechat->wxPay($this->model['order_sn'], $openid, $this->model['deposit'])){
|
|
|
// $this->error($Wechat->getError());
|
|
|
// }
|
|
|
$Wechat = new Wechat;
|
|
|
$openid = Db::name('third')->where('user_id',$user['id'])->value('openid');
|
|
|
$this->model['deposit'] = 0.01; //测试金额
|
|
|
if(!$payment = $Wechat->wxPay($this->model['order_sn'], $openid, $this->model['deposit'])){
|
|
|
$this->error($Wechat->getError());
|
|
|
}
|
|
|
// 测试支付
|
|
|
(new \app\index\controller\Notify)->notifyTest(['out_trade_no'=>$this->model['order_sn'],'transaction_id'=>'test']);
|
|
|
// (new \app\index\controller\Notify)->notifyTest(['out_trade_no'=>$this->model['order_sn'],'transaction_id'=>'test']);
|
|
|
$payment = [];
|
|
|
$this->success('成功',[
|
|
|
'payment' => $payment,
|
...
|
...
|
|