...
|
...
|
@@ -577,9 +577,8 @@ class OrderController extends HomeBaseController{ |
|
|
* @param name:order_no type:String require:1 default:无 other: desc:订单号
|
|
|
* @return data:返回用于调用支付的参数
|
|
|
*/
|
|
|
public function pay(){
|
|
|
$param=$this->request->param();
|
|
|
$order = Db::name('order')->where(['order_no' => $param['order_no'], 'state' => 2])->find();
|
|
|
public function pay($order_sn=null){
|
|
|
$order = Db::name('order')->where(['order_no' => $order_sn, 'state' => 2])->find();
|
|
|
$user = Db::name('users')->where('id', $order['users_id'])->find();
|
|
|
$price = $order['price'] * 100;//订单价格
|
|
|
//微信直接支付
|
...
|
...
|
|