|
@@ -33,8 +33,15 @@ class Order extends Controller
|
|
|
protected function initialize()
|
|
|
{
|
|
|
parent::initialize();
|
|
|
- $this->payments = PaymentService::getTypeAll();
|
|
|
- dump($this->payments);
|
|
|
+ //$this->payments = PaymentService::getTypeAll();
|
|
|
+ $this->payments = [
|
|
|
+ [
|
|
|
+ 'name'=>'支付宝支付'
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 'name'=>'微信支付'
|
|
|
+ ]
|
|
|
+ ];
|
|
|
// // 读取支付通道配置
|
|
|
// $query = BaseUserPayment::mk()->where(['status' => 1, 'deleted' => 0]);
|
|
|
// //$query->whereIn('code', str2arr($payments))->whereIn('type', PaymentService::getTypeApi($this->type));
|