rabin 3 dni temu
rodzic
commit
81504cfcad
1 zmienionych plików z 7 dodań i 7 usunięć
  1. 7 7
      src/dai/seller/app/Api/Order.php

+ 7 - 7
src/dai/seller/app/Api/Order.php

@@ -28,8 +28,8 @@ class Order
 
     # 队列提交订单 不做任何数据库操作 先不实现
     //public function submit_commit(){}
-    //public function submit_secure(){}
-    //public function submit_token(){return $this->token();}
+    public function submit_secure(){}
+    public function submit_token(){return $this->token();}
     public function submit()
     {
         # 余额保存在redis中
@@ -68,11 +68,11 @@ class Order
     public function account_token(){return $this->token();}
     public function account()
     {
-        $result['name'] = $this->info['name'];
-        $result['yue'] = $this->info['cash'] + $this->info['credit'];
-        $result['cash'] = $this->info['cash'];
-        $result['credit'] = $this->info['credit'];
-        $result['payCash'] = $this->info['p_cash'];
+        $result['appkey'] = $this->info['appkey'];
+        $result['yue'] = Dever::load(\Seller\Lib\Info::class)->getYue($this->info['appkey']);
+        //$result['cash'] = $this->info['cash'];
+        //$result['credit'] = $this->info['credit'];
+        //$result['payCash'] = $this->info['p_cash'];
         return $result;
     }