Explorar o código

wesmiler ECY 画画交易平台

APPLE %!s(int64=3) %!d(string=hai) anos
pai
achega
d070d7a9e0
Modificáronse 100 ficheiros con 115079 adicións e 59 borrados
  1. 8 0
      .idea/.gitignore
  2. 40 0
      .idea/NN2022090201.iml
  3. 6 0
      .idea/inspectionProfiles/Project_Default.xml
  4. 16 0
      .idea/jsLinters/jshint.xml
  5. 8 0
      .idea/modules.xml
  6. 41 0
      .idea/php.xml
  7. 6 0
      .idea/vcs.xml
  8. 1 0
      application/admin/library/Auth.php
  9. 0 9
      application/admin/model/Trade.php
  10. 136 3
      application/api/controller/Index.php
  11. 1 0
      application/api/controller/Shop.php
  12. 32 1
      application/api/controller/Trade.php
  13. 57 11
      application/api/controller/User.php
  14. 41 0
      application/common.php
  15. 1 1
      application/common/library/Auth.php
  16. 74 0
      application/common/library/CoinRate.php
  17. 16 0
      application/common/model/Config.php
  18. 23 0
      application/common/model/ReleaseLog.php
  19. 84 0
      application/common/model/Trade.php
  20. 22 0
      application/common/model/User.php
  21. 1 1
      application/database.php
  22. 7 0
      application/extra/site.php
  23. 13 0
      application/shop/controller/Index.php
  24. 11 1
      application/shop/controller/User.php
  25. 46 2
      application/shop/view/index/index.html
  26. 29 0
      application/shop/view/trade/trade3.html
  27. 18 8
      application/shop/view/user/profile.html
  28. 107 0
      application/shop/view/user/releaselog.html
  29. 41 9
      application/shop/view/user/withdraw.html
  30. 2 1
      application/shop/view/user/withdrawdetaile.html
  31. 13 12
      public/assets/js/backend/bonus/withdrawals.js
  32. BIN=BIN
      public/assets/shop/img/menu.jpeg
  33. BIN=BIN
      public/uploads/20220619/0024826f3089ee698461529e03cb2509.jpeg
  34. BIN=BIN
      public/uploads/20220619/10989419f96d6ca72886ee36a544df63.jpeg
  35. BIN=BIN
      public/uploads/20220619/1967c287c3fdf2925ce6d486817235d1.png
  36. BIN=BIN
      public/uploads/20220619/33c8bbf7024830522b2fcd76adcf68e0.jpeg
  37. BIN=BIN
      public/uploads/20220619/3648ee84ed14ae2dbd596aa376219d7a.jpg
  38. BIN=BIN
      public/uploads/20220619/3e8e51bd4820cb748845329ac6532a3b.jpg
  39. BIN=BIN
      public/uploads/20220619/3fb62c9121479631e73ba34bd2d5bcff.jpg
  40. BIN=BIN
      public/uploads/20220619/41623f82a03e90d2496735f456c32821.jpeg
  41. BIN=BIN
      public/uploads/20220619/424146a649447f188a424fa4e1cadeb9.jpg
  42. BIN=BIN
      public/uploads/20220619/424cb95bfe09cf61ba77a833fa49b8bb.jpg
  43. BIN=BIN
      public/uploads/20220619/441008a7cd6e82063eafdb662a0149ef.jpeg
  44. BIN=BIN
      public/uploads/20220619/4d32d86baecb90f761b05b0b94c3d058.jpeg
  45. BIN=BIN
      public/uploads/20220619/4e81c65e154e52d221703d138e52e665.jpeg
  46. BIN=BIN
      public/uploads/20220619/59212071c96cf32e099001816e9f476b.jpeg
  47. BIN=BIN
      public/uploads/20220619/5b59526ed5069dadb3a42066fcbc8ec2.jpg
  48. BIN=BIN
      public/uploads/20220619/5f0306d6f6a939f6b4e0d69e2a4ba356.jpeg
  49. BIN=BIN
      public/uploads/20220619/63666c971ad15beb32f3c61a7285cd53.jpg
  50. BIN=BIN
      public/uploads/20220619/70ac218cdbdfcc38e4c6655a2a355fb9.jpg
  51. BIN=BIN
      public/uploads/20220619/7288553f2ce36bd5e93682ee2f99bfcc.jpg
  52. BIN=BIN
      public/uploads/20220619/799dd55b8b5fb76a9d9ed4b5dbdf3fef.jpeg
  53. BIN=BIN
      public/uploads/20220619/7d7ef53e67366825f6eb9ea011eb97d0.jpg
  54. BIN=BIN
      public/uploads/20220619/8d24b0d13cffe335762a1e6a475b56c1.jpeg
  55. BIN=BIN
      public/uploads/20220619/8da51c1a054d33e97794efff43c2cb8b.jpeg
  56. BIN=BIN
      public/uploads/20220619/943af8f10886b6d2db423138724bbf12.jpeg
  57. BIN=BIN
      public/uploads/20220619/96e5713a66d1690ca3952d98fae4f1de.jpeg
  58. BIN=BIN
      public/uploads/20220619/971cac39e593656ec1342811a8c39b19.jpg
  59. BIN=BIN
      public/uploads/20220619/9764dd6855c08abec9db0d6548507ca0.jpg
  60. BIN=BIN
      public/uploads/20220619/983346e72e4010d6e1d630daa2ed1dad.jpeg
  61. BIN=BIN
      public/uploads/20220619/a0e5d137664b11871e8724b50737970d.jpg
  62. BIN=BIN
      public/uploads/20220619/a22d9fdf41e32d7a3e4044d1e697f784.jpg
  63. BIN=BIN
      public/uploads/20220619/a32ffdf4d4543bd103bc564daa1225ec.jpg
  64. BIN=BIN
      public/uploads/20220619/a8c7104d7c863d300f216fd07a29d643.jpg
  65. BIN=BIN
      public/uploads/20220619/ae8ba195f354e78781066b8e4d62d4d5.jpeg
  66. BIN=BIN
      public/uploads/20220619/b518b380963166584c233c9b786a1d5c.jpg
  67. BIN=BIN
      public/uploads/20220619/b67f3562d7c9f9b91ad066fbab180d1c.jpeg
  68. BIN=BIN
      public/uploads/20220619/bb37011630f6442d9be5ddea2b937c9d.jpg
  69. BIN=BIN
      public/uploads/20220619/be523685d824b205dfb70aa72669e4cb.jpeg
  70. BIN=BIN
      public/uploads/20220619/c1a5e0a2980bcf07ee6baba9aaf30c52.jpeg
  71. BIN=BIN
      public/uploads/20220619/c21de8d96ed7943c1a602b1a71389957.jpeg
  72. BIN=BIN
      public/uploads/20220619/c6425e8d3ea25541dc977adddc839314.jpeg
  73. BIN=BIN
      public/uploads/20220619/cbafd15eacdf3772c89e56991c35838a.jpg
  74. BIN=BIN
      public/uploads/20220619/cee5d2e58abfaf743400611518d5a60a.png
  75. BIN=BIN
      public/uploads/20220619/cfaf7d148c0b41ca1d40552d36a7bb87.jpg
  76. BIN=BIN
      public/uploads/20220619/d206ecdc60f3c70e6bb986955ff0e05f.jpg
  77. BIN=BIN
      public/uploads/20220619/d8dee30f0e1ed19f7461001ce00ac19b.jpg
  78. BIN=BIN
      public/uploads/20220619/da15d97cfededcb0ee96da22da8f3b40.jpg
  79. BIN=BIN
      public/uploads/20220619/e9c36743ec373a5b16a4e8fa685c6ef4.jpeg
  80. BIN=BIN
      public/uploads/20220619/f520dd45effa1723ee30fc5de369c8c7.jpeg
  81. BIN=BIN
      public/uploads/20220619/f995e88515e516e76f52ef30e7ba89e1.jpg
  82. BIN=BIN
      public/uploads/20220907/d0768ad682c5f22ab23333b0a93e0134.jpg
  83. 4 0
      runtime/cache/20/d4200196dabff54c778f361b85aa6a.php
  84. 4 0
      runtime/cache/4e/819c837d54a6ed09abc77a8560a66f.php
  85. 4 0
      runtime/cache/5d/d54d46e0aae520c6f1b29c30206df2.php
  86. 32944 0
      runtime/log/202209/05.log
  87. 672 0
      runtime/log/202209/06.log
  88. 15351 0
      runtime/log/202209/07.log
  89. 3844 0
      runtime/log/202209/15.log
  90. 20122 0
      runtime/log/202209/16.log
  91. 39972 0
      runtime/log/202209/1662536710-07.log
  92. 98 0
      runtime/temp/00fe8c2eec7c6d665c3b9d1fee6eabe9.php
  93. 117 0
      runtime/temp/0945c3352751d264d3523cae2fa234b2.php
  94. 245 0
      runtime/temp/0c7628e73da439c1f1db5f0bc7ca250c.php
  95. 98 0
      runtime/temp/13773f373a03fc6992aece0172c2397d.php
  96. 286 0
      runtime/temp/1668796b27bfc4a38b2b5275a6d78308.php
  97. 92 0
      runtime/temp/181c6882f6a85ab67444d8a86da517c4.php
  98. 154 0
      runtime/temp/1a46c9c568ee9cad40c729406fcaacb3.php
  99. 171 0
      runtime/temp/1ee93f251cc4e2a94ba830051286a127.php
  100. 0 0
      runtime/temp/29d0cedecb19fb55dd3729c968b14e62.php

+ 8 - 0
.idea/.gitignore

@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# Editor-based HTTP Client requests
+/httpRequests/

+ 40 - 0
.idea/NN2022090201.iml

@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$">
+      <excludeFolder url="file://$MODULE_DIR$/vendor/topthink/think-installer" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-mbstring" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/psr-http-message-bridge" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/options-resolver" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/guzzlehttp/psr7" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/http-foundation" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/phpmailer/phpmailer" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/guzzlehttp/guzzle" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/guzzlehttp/promises" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php70" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/psr/log" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/psr/container" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/ralouphie/getallheaders" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/psr/simple-cache" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/markbaker/complex" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/paragonie/random_compat" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/phpoffice/phpspreadsheet" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/psr/http-message" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/markbaker/matrix" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/cache" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/overtrue/pinyin" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/overtrue/socialite" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/PHPExcel/PHPExcel" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/endroid/qr-code" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/monolog/monolog" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/pimple/pimple" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/overtrue/wechat" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/karsonzhang/fastadmin-addons" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/mtdowling/cron-expression" />
+      <excludeFolder url="file://$MODULE_DIR$/vendor/topthink/think-captcha" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 6 - 0
.idea/inspectionProfiles/Project_Default.xml

@@ -0,0 +1,6 @@
+<component name="InspectionProjectProfileManager">
+  <profile version="1.0">
+    <option name="myName" value="Project Default" />
+    <inspection_tool class="JSHint" enabled="true" level="ERROR" enabled_by_default="true" />
+  </profile>
+</component>

+ 16 - 0
.idea/jsLinters/jshint.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="JSHintConfiguration" version="2.12.0" use-config-file="true" use-custom-config-file="true" custom-config-file-path="$PROJECT_DIR$/public/assets/libs/bootstrap-select/js/.jshintrc">
+    <option bitwise="true" />
+    <option browser="true" />
+    <option curly="true" />
+    <option eqeqeq="true" />
+    <option forin="true" />
+    <option maxerr="50" />
+    <option noarg="true" />
+    <option noempty="true" />
+    <option nonew="true" />
+    <option strict="true" />
+    <option undef="true" />
+  </component>
+</project>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/NN2022090201.iml" filepath="$PROJECT_DIR$/.idea/NN2022090201.iml" />
+    </modules>
+  </component>
+</project>

+ 41 - 0
.idea/php.xml

@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="PhpIncludePathManager">
+    <include_path>
+      <path value="$PROJECT_DIR$/vendor/topthink/think-installer" />
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
+      <path value="$PROJECT_DIR$/vendor/symfony/psr-http-message-bridge" />
+      <path value="$PROJECT_DIR$/vendor/symfony/options-resolver" />
+      <path value="$PROJECT_DIR$/vendor/guzzlehttp/psr7" />
+      <path value="$PROJECT_DIR$/vendor/symfony/http-foundation" />
+      <path value="$PROJECT_DIR$/vendor/phpmailer/phpmailer" />
+      <path value="$PROJECT_DIR$/vendor/guzzlehttp/guzzle" />
+      <path value="$PROJECT_DIR$/vendor/guzzlehttp/promises" />
+      <path value="$PROJECT_DIR$/vendor/symfony/polyfill-php70" />
+      <path value="$PROJECT_DIR$/vendor/psr/log" />
+      <path value="$PROJECT_DIR$/vendor/psr/container" />
+      <path value="$PROJECT_DIR$/vendor/ralouphie/getallheaders" />
+      <path value="$PROJECT_DIR$/vendor/psr/simple-cache" />
+      <path value="$PROJECT_DIR$/vendor/markbaker/complex" />
+      <path value="$PROJECT_DIR$/vendor/paragonie/random_compat" />
+      <path value="$PROJECT_DIR$/vendor/phpoffice/phpspreadsheet" />
+      <path value="$PROJECT_DIR$/vendor/psr/http-message" />
+      <path value="$PROJECT_DIR$/vendor/markbaker/matrix" />
+      <path value="$PROJECT_DIR$/vendor/composer" />
+      <path value="$PROJECT_DIR$/vendor/doctrine/cache" />
+      <path value="$PROJECT_DIR$/vendor/overtrue/pinyin" />
+      <path value="$PROJECT_DIR$/vendor/overtrue/socialite" />
+      <path value="$PROJECT_DIR$/vendor/PHPExcel/PHPExcel" />
+      <path value="$PROJECT_DIR$/vendor/endroid/qr-code" />
+      <path value="$PROJECT_DIR$/vendor/monolog/monolog" />
+      <path value="$PROJECT_DIR$/vendor/pimple/pimple" />
+      <path value="$PROJECT_DIR$/vendor/overtrue/wechat" />
+      <path value="$PROJECT_DIR$/vendor/karsonzhang/fastadmin-addons" />
+      <path value="$PROJECT_DIR$/vendor/mtdowling/cron-expression" />
+      <path value="$PROJECT_DIR$/vendor/topthink/think-captcha" />
+    </include_path>
+  </component>
+  <component name="PhpProjectSharedConfiguration" php_language_level="8.0">
+    <option name="suggestChangeDefaultLanguageLevel" value="false" />
+  </component>
+</project>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

+ 1 - 0
application/admin/library/Auth.php

@@ -51,6 +51,7 @@ class Auth extends \fast\Auth
             $this->setError('Please try again after 1 day');
             return false;
         }
+
         if ($admin->password != md5($password . $admin->salt.Config::get('fastadmin.salt'))) {
             $admin->loginfailure++;
             $admin->save();

+ 0 - 9
application/admin/model/Trade.php

@@ -8,10 +8,6 @@ use think\Model;
 class Trade extends Model
 {
 
-    
-
-    
-
     // 表名
     protected $name = 'trade';
     
@@ -29,11 +25,6 @@ class Trade extends Model
         'pay_time_text',
         'confirm_time_text'
     ];
-    
-
-    
-
-
 
     public function getCtimeTextAttr($value, $data)
     {

+ 136 - 3
application/api/controller/Index.php

@@ -3,6 +3,9 @@
 namespace app\api\controller;
 
 use app\common\controller\Api;
+use app\common\library\CoinRate;
+use app\common\model\ReleaseLog;
+use app\common\model\Trade;
 use think\db;
 use think\Session;
 use Think\Config;
@@ -13,9 +16,6 @@ class Index extends Api
 {
     protected $noNeedLogin = ['*'];
     protected $noNeedRight = ['*'];
-    
-    
-    
    
     /**
      * 首页
@@ -52,6 +52,139 @@ class Index extends Api
         }
         $this->success('请求成功');
     }
+
+
+    /**
+     * 转售产品每日释放
+     * @throws \think\exception\DbException
+     * @throws db\exception\DataNotFoundException
+     * @throws db\exception\ModelNotFoundException
+     */
+    public function release()
+    {
+        $key = input('key','');
+        if($key != md5('hua')){
+            $this->error('非法请求');
+        }
+
+        if(date('H:i') >= '07:00'){
+            $this->error('不在释放处理时间段内');
+        }
+
+        // 计算获取奖池和已释放总额
+        $awards = Trade::getAwardTotal();
+        $releaseTotalUsdt = Trade::where(['status'=> 3,'on_resale'=>1])->sum('release_usdt');
+        $awardTotalUsdt = isset($awards['total_usdt'])? $awards['total_usdt'] : 0;
+        // 奖池是否还有钱,若已释放完
+        if($awardTotalUsdt <= $releaseTotalUsdt){
+            $this->error('抱歉,奖池金额已释放完');
+        }
+
+        // 处理转售释放
+        $tradeConfig = \app\common\model\Config::getConfigByGroup('trade');
+        $config['release_rate'] = isset($tradeConfig['release_rate'])? $tradeConfig['release_rate']['value'] : 0;
+        if($config['release_rate'] <= 0){
+            $this->error('释放参数错误,请先配置');
+        }
+
+        $coinRate = CoinRate::getRate('USD','CNY');
+        if($coinRate<=0){
+            $this->error('汇率参数错误,请稍后重试');
+        }
+
+        // 待释放产品
+        $tradeList = \app\common\model\Trade::where(['on_resale'=>1])
+            ->whereIn('status', [3,4])
+            ->whereRaw('release_usdt < endnums')
+            ->where('release_time','<', strtotime(date('Y-m-d')))
+            ->field('id,orderNo,goodsid,userid,relevant_userid,status,endnums,release_total,release_usdt,release_time')
+            ->order('ctime','asc')
+            ->limit(1000)
+            ->select();
+
+        if(empty($tradeList)){
+            $this->error('暂时没有可释放的转售产品');
+        }
+
+        $success = 0;
+        $fail = 0;
+        foreach ($tradeList as $k => $item){
+            $tradeUserId = isset($item['relevant_userid'])? $item['relevant_userid'] : 0;
+            $speedData = Trade::getSpeedTotalByUser($tradeUserId); // 加速值
+            $speedUsdt = isset($speedData['speed_usdt'])? $speedData['speed_usdt'] : 0;
+
+            // 计算释放额度
+            $amount = isset($item['endnums'])? $item['endnums'] : 0;
+            $releaseUsdt = isset($item['release_usdt'])? $item['release_usdt'] : 0;
+            $usdt = $amount? round($amount * $config['release_rate']/100 + $speedUsdt, 2) : 0;
+            $usdt = ($amount-$releaseUsdt)<$usdt? ($amount-$releaseUsdt) : $usdt;
+            $releaseTotal = isset($item['release_total'])? $item['release_total'] : 0;
+            if($tradeUserId<=0 || $amount<=0 || $usdt<=0 || $amount<=$releaseUsdt){
+                $fail++;
+                continue;
+            }
+
+            // 用户信息
+            $user = \app\common\model\User::where(['id'=> $tradeUserId,'status'=>1])
+                ->field('id,bonus,nickname')
+                ->find();
+            if(empty($user)){
+                $fail++;
+                continue;
+            }
+
+            // 释放到余额
+            Db::startTrans();
+            $money = round( + $coinRate * $usdt, 2);
+            $user->bonus = $user->bonus + $money;
+            $user->updatetime = time();
+            if(!$user->save()){
+                $fail++;
+                Db::rollback();
+                continue;
+            }
+
+            // 释放明细
+            $data = [
+                'userid'=> $tradeUserId,
+                'type'=>1,
+                'money'=> $money,
+                'usdt_num'=> $usdt,
+                'speed_usdt'=> $speedUsdt,
+                'speed_total'=> CoinRate::transfer($speedUsdt,'USD','CNY'),
+                'balance'=> $user->bonus,
+                'orderid'=> $item['id'],
+                'status'=> 1,
+                'create_time'=> time(),
+                'update_time'=> time(),
+                'remark'=> '转售产品每日释放到账',
+            ];
+
+            if(!ReleaseLog::insertGetId($data)){
+                $fail++;
+                Db::rollback();
+                continue;
+            }
+
+            // 更新释放交易商品数据
+            $tradeData = ['release_total'=> $releaseTotal+$money,'release_usdt'=> $releaseUsdt+$usdt,'release_time'=> time()];
+            if($releaseUsdt+$usdt >= $amount){
+                $tradeData['status'] = 4;
+            }
+
+            if(!Trade::where(['id'=> $item['id']])->update($tradeData)){
+                $fail++;
+                Db::rollback();
+                continue;
+            }
+
+            $success++;
+            Db::commit();
+        }
+
+        $this->success('请求处理成功', ['success'=> $success,'fail'=> $fail]);
+    }
+
     /*预约上架*/
     function checkappoint()
     {

+ 1 - 0
application/api/controller/Shop.php

@@ -43,6 +43,7 @@ class Shop extends Api
 			$this->error('缺少参数页码');
 		}
 		$map['on_sale']=1;
+//		$map['on_resale']=2;
 		$pagesize=10;
         $map['istrade']=0;
         /*获取画室*/

+ 32 - 1
application/api/controller/Trade.php

@@ -718,6 +718,7 @@ class Trade extends Api
         {
             $map['istrade']=1;
         }
+
         $map['on_sale']=1;
         $map['userid'] = $this->auth->id;
         $p = $this->request->post('p');
@@ -876,6 +877,34 @@ class Trade extends Api
 
         }
     }
+
+    /*转售给平台 add by wes */
+    function resaletrade()
+    {
+        $id=$this->request->request('id');
+        $trade=db('trade')->where(['id'=>$id,'status'=>3,'issell'=>2])->find();
+        if(empty($trade))
+        {
+            $this->error('订单商品不存在,或未上架无法转售');
+        }
+
+        if($trade['on_resale'] == 1) {
+            $this->error('订单商品已转售');
+        }
+
+        db()->startTrans();
+        $res=db('trade')->where(['id'=>$id,'status'=>3])->update(['on_resale'=>1]);
+        $res1=db('goods')->where(['id'=>$trade['goodsid']])->update(['time1'=>time(),'on_resale'=> 1]);
+        if($res && $res1)
+        {
+            db()->commit();
+            $this->success('转售平台完成');
+        }else{
+            db()->rollback();
+            $this->error('转售平台失败');
+        }
+    }
+
     /*申诉*/
     function toappeal()
     {
@@ -908,7 +937,7 @@ class Trade extends Api
             $map['stuid']=$sid;
             $gmap['stuid']=$sid;
         }
-        $sinfo=db('studio')->where(['id'=>$sid])->find();
+        $studio=db('studio')->where(['id'=>$sid])->find();
 
         $isappoint=db('studio_user')->where(['sid'=>$studio['id'],'userid'=>$this->auth->id])->find();
         if($isappoint)
@@ -934,6 +963,7 @@ class Trade extends Api
             $gmap['price1'][]=['lt',$price_range[1]];
         }
         /*下架的不算*/
+        $godis =[];
         $ggids=db('goods')->where(['on_sale'=>['neq',1]])->column('id');
         $ggids2=db('trade')->where(['status'=>0])->column('goodsid');
         if($ggids)
@@ -962,6 +992,7 @@ class Trade extends Api
         {
             $gmap['userid']=['neq',$this->auth->id];
             $gmap['on_sale']=1;
+            $gmap['on_resale']=2;
             $gmap['istrade']=0;
             $gmap['userid']=['neq',$this->auth->id];
             $goods=db('goods')->where($gmap)->find();

+ 57 - 11
application/api/controller/User.php

@@ -3,8 +3,10 @@
 namespace app\api\controller;
 
 use app\common\controller\Api;
+use app\common\library\CoinRate;
 use app\common\library\Ems;
 use app\common\library\Sms;
+use app\common\model\Config;
 use function EasyWeChat\Payment\get_server_ip;
 use fast\Random;
 use think\Validate;
@@ -379,7 +381,7 @@ class User extends Api
             }
         }
     }
-    /* 记录 */
+    /* 提现记录 */
     function withdrawdetaile()
     {
         $map['userid'] = $this->auth->id;
@@ -402,6 +404,32 @@ class User extends Api
 
     }
 
+    /* 释放记录 */
+    function releaselog()
+    {
+        $map['userid'] = $this->auth->id;
+        $p = $this->request->post('p');
+        if($this->request->post('type')){
+            $map['type'] = $this->request->post('type');
+        }
+
+        $data_list = db('release_log')->where($map)->page($p, 10)->order("id desc")->select();
+        foreach ($data_list as $k => $v) {
+
+            $data_list[$k]['times'] = date("Y-m-d H:i", $v['create_time']);
+            $data_list[$k]['click'] = 'onclick="review(\'' . $v['remark'] . '\')"';
+        }
+        if ($data_list) {
+            $return['data'] = $data_list;
+        } else {
+            $return['data'] = null;
+        }
+        $count = db('release_log')->where($map)->count();
+        $return['total'] = ceil($count / 10);
+        return $return;
+
+    }
+
     /**
      * 修改邮箱
      *
@@ -740,7 +768,11 @@ class User extends Api
         if (!check_psdtwo($psdtwo, $this->auth->id)) {
             $this->error(__('支付密码验证失败!'));
         }
-        $config = db('bonus_config')->where('id', 6)->find();
+        //$config = db('bonus_config')->where('id', 6)->find();
+        $tradeConfig = Config::getConfigByGroup('trade');
+        $config['withdraw_min'] = isset($tradeConfig['withdraw_min'])? $tradeConfig['withdraw_min']['value'] : 0;
+        $config['withdraw_cap'] = isset($tradeConfig['withdraw_cap'])? $tradeConfig['withdraw_cap']['value'] : 0;
+        $config['withdraw_fee'] = isset($tradeConfig['withdraw_fee'])? $tradeConfig['withdraw_fee']['value'] : 0;
         if (empty($param['money'])) {
             $this->error(__('请输入提现金额!'));
         }
@@ -750,11 +782,11 @@ class User extends Api
         if (!is_numeric($param['money'])) {
             $this->error(__('提现金额有误'));
         }
-        if ($param['money'] < (float)$config['max_layer']) {
-            $this->error(__('提现金额有误'));
+        if ($param['money'] < $config['withdraw_min']) {
+            $this->error(__('提现金额最低为'.$config['withdraw_min']));
         }
-        if ($param['money'] % $config['cap'] != 0) {
-            $this->error(__('提现金额有误'));
+        if ($config['withdraw_cap'] && $param['money'] % $config['withdraw_cap'] != 0) {
+            $this->error(__('提现金额应为'.$config['withdraw_cap'].'的倍数'));
         }
         if (empty($param['type'])) {
             $this->error(__('请选择提现方式'));
@@ -774,15 +806,14 @@ class User extends Api
             $name='';
             $type="支付宝";
         }elseif($param['type'] == 2){
-            if(
-            y($user['wxprc']))
+            if(empty($user['wxprc']))
             {
                 $this->error('请完善微信收款信息');
             }
             $prc=$user['wxprc'];
             $name='';
             $type="微信";
-        }else{
+        }else if($param['type'] == 3){
             if(!($user['bank'] && $user['bank_user_name'] && $user['bank_number']))
             {
                 $this->error('请完善y银行卡收款信息');
@@ -790,9 +821,17 @@ class User extends Api
             $prc='';
             $name=$user['bank'].'-'.$user['bank_user_name'].'-'.$user['bank_number'];
             $type="银行卡";
+        }else {
+            if(empty($user['usdt_address']))
+            {
+                $this->error('请先完善USDT钱包地址信息');
+            }
+            $prc='';
+            $name='';
+            $type="USDT";
         }
         $studio=db('studio')->where(['title'=>$this->auth->login_studio])->find();
-        $fee=$param['money']*$config['value']*0.01;
+        $fee=$param['money']*$config['withdraw_fee']*0.01;
         db()->startTrans();
         $changedata = [
             'type' => 6,
@@ -810,12 +849,15 @@ class User extends Api
             'userid' => $this->auth->id,
             'username' => $user['username'],
             'prc' => $prc,
+            'usdt_num' => CoinRate::transfer($param['money']-$fee,'CNY','USD'),
+            'usdt_address' => isset($user['usdt_address'])? $user['usdt_address'] : '',
             'name'=>$name,
             'process_status' => 1,
             'money_type' => 'bonus',
             'type'=>$type,
             'stuid'=>$studio['id'],
         ];
+
         $ids = db('withdrawals')->insertGetId($data);
         if ($res && $ids) {
             db()->commit();
@@ -913,7 +955,11 @@ class User extends Api
         //{
         //    $this->error('请完善微信资料');
         //}
-        if(!($param['bank'] && $param['bank_user_name'] && $param['bank_number']))
+        if(isset($param['usdt_address']) && !$param['usdt_address'])
+        {
+            $this->error('请填写USDT钱包地址');
+        }
+        if(isset($param['bank']) && !($param['bank'] && $param['bank_user_name'] && $param['bank_number']))
         {
             $this->error('请完善银行卡资料');
         }

+ 41 - 0
application/common.php

@@ -75,6 +75,47 @@ if (!function_exists('goeasy_sms')) {
         return $result;
     }
 }
+
+
+if (!function_exists('curl_api')) {
+
+    /**
+     * curl请求(POST)
+     * @param $url 请求地址
+     * @param array $data 请求参数
+     * @return bool|string 返回结果
+     * @author laravel开发员
+     * @date 2019/6/5
+     */
+    function curl_api_get($url, $header=[], $timeout=20)
+    {
+        // 初始化
+        $ch = curl_init();
+        // 设置post方式提交
+//        curl_setopt($ch, CURLOPT_POST, 1);
+        // 设置头文件的信息作为数据流输出
+        curl_setopt($ch, CURLOPT_HEADER, 0);
+        // 超时
+        curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
+        // 是否要求返回数据
+        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+        // 请求头
+        if($header){
+            curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
+        }
+        // 设置抓取的url
+        curl_setopt($ch, CURLOPT_URL, $url);
+        // 是否检测服务器的证书是否由正规浏览器认证过的授权CA颁发的
+        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
+        // 执行命令
+        $result = curl_exec($ch);
+        // 关闭URL请求(释放句柄)
+        curl_close($ch);
+        return $result;
+    }
+}
+
 // 公共助手函数
 if (!function_exists('__')) {
     /**

+ 1 - 1
application/common/library/Auth.php

@@ -206,7 +206,7 @@ class Auth
             $this->setError('账户未激活,不能登录');
             return false;
         } 
-        //var_dump($this->getEncryptPassword($password, $user->salt));
+
         if ($user->password != $this->getEncryptPassword($password, $user->salt)) {
             $this->setError('Password is incorrect');
             return false;

+ 74 - 0
application/common/library/CoinRate.php

@@ -0,0 +1,74 @@
+<?php
+namespace app\common\library;
+
+use think\Cache;
+use think\Hook;
+
+/**
+ * 根据汇率转换金额
+ * Class CoinRate
+ * @package app\common\library
+ */
+class CoinRate
+{
+    protected static $apiUrl = 'https://api.it120.cc/gooking/forex/rate?fromCode=%s&toCode=%s';
+
+    /**
+     * 转换汇率金额
+     * @param $amount
+     * @param string $from
+     * @param string $to
+     * @return float|mixed
+     */
+    public static function transfer($amount, $from='CNY', $to='USD')
+    {
+        if(empty($from) || empty($to)){
+            return $amount;
+        }
+
+        $cacheKey = "cache:rates:{$from}_{$to}";
+        $data = Cache::get($cacheKey);
+        $rate = isset($data['rate'])? floatval($data['rate']) : 0.00;
+        $expired = isset($data['expired'])? intval($data['expired']) : 0;
+        if($rate<=0 || $expired<time()){
+            $result = curl_api_get(sprintf(self::$apiUrl, $to, $from));
+            $result = $result? json_decode($result, true) : [];
+            $data = isset($result['data'])? $result['data'] : [];
+            $rate = isset($data['rate'])? floatval($data['rate']) : 0.00;
+            if($rate > 0){
+                $data['expired'] = time() + 300;
+                Cache::set($cacheKey, $data, time() + 300);
+            }
+        }
+
+        return $rate>0? floatval($rate * $amount) : $amount;
+    }
+
+    /**
+     * 转换汇率金额
+     * @param $amount
+     * @param string $from
+     * @param string $to
+     * @return float|mixed
+     */
+    public static function getRate($from='CNY', $to='USD')
+    {
+        $cacheKey = "cache:rates:{$from}_{$to}";
+        $data = Cache::get($cacheKey);
+        $rate = isset($data['rate'])? floatval($data['rate']) : 0.00;
+        $expired = isset($data['expired'])? intval($data['expired']) : 0;
+        if($rate<=0 || $expired<time()){
+            $result = curl_api_get(sprintf(self::$apiUrl, $to, $from));
+            $result = $result? json_decode($result, true) : [];
+            $data = isset($result['data'])? $result['data'] : [];
+            $rate = isset($data['rate'])? floatval($data['rate']) : 0.00;
+            if($rate > 0){
+                $data['expired'] = time() + 300;
+                Cache::set($cacheKey, $data, time() + 300);
+            }
+        }
+
+        return $rate;
+    }
+}
+?>

+ 16 - 0
application/common/model/Config.php

@@ -136,6 +136,22 @@ class Config extends Model
     }
 
     /**
+     * 获取配置
+     * @param $group
+     * @return bool|\PDOStatement|string|\think\Collection
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     */
+    public static function getConfigByGroup($group)
+    {
+        $config = Config::where(['group'=> $group])
+            ->column('id,name,group,value,title','name');
+
+        return $config;
+    }
+
+    /**
      * 将键值数组转换为字符串
      * @param array $array
      * @return string

+ 23 - 0
application/common/model/ReleaseLog.php

@@ -0,0 +1,23 @@
+<?php
+
+namespace app\common\model;
+
+use think\Model;
+
+/**
+ * 释放日志
+ */
+class ReleaseLog Extends Model
+{
+
+    // 表名
+    protected $name = 'release_log';
+    // 开启自动写入时间戳字段
+    protected $autoWriteTimestamp = 'int';
+    // 定义时间戳字段名
+    protected $createTime = 'create_time';
+    protected $updateTime = 'update_time';
+    // 追加属性
+    protected $append = [
+    ];
+}

+ 84 - 0
application/common/model/Trade.php

@@ -0,0 +1,84 @@
+<?php
+
+namespace app\common\model;
+
+use app\common\library\CoinRate;
+use think\Model;
+
+/**
+ * 交易
+ */
+class Trade Extends Model
+{
+
+    // 表名
+    protected $name = 'trade';
+    // 开启自动写入时间戳字段
+    protected $autoWriteTimestamp = 'int';
+    // 定义时间戳字段名
+    protected $createTime = 'createtime';
+    protected $updateTime = false;
+    // 追加属性
+    protected $append = [
+    ];
+
+
+    /**
+     * 奖金池
+     * @return array
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     */
+    public static function getAwardTotal()
+    {
+        $total = Trade::where(['status'=> 4,'on_resale'=>2])->sum('endnums');
+        $config = Config::getConfigByGroup('trade');
+        $awardBase = isset($config['award_base'])? floatval($config['award_base']['value']) : 0;
+        $award = round($total + $awardBase, 2);
+        $counts = [
+            'total'=> CoinRate::transfer($award),
+            'total_usdt'=> $award,
+            'award'=> $total,
+            'award_base'=> $awardBase,
+        ];
+
+       return $counts;
+    }
+
+    /**
+     * 获取用户释放加速值
+     * @param $userId
+     * @return array|false
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     */
+    public static function getSpeedTotalByUser($userId)
+    {
+        $uids = User::getLowerIds($userId);
+        if(empty($uids)){
+            return false;
+        }
+
+        // 下线销售额,包括自己
+        $total = Trade::where(['status'=> 4,'on_resale'=>2])->whereIn('userid', $uids)->sum('endnums');
+
+        // 加速参数
+        $config = Config::getConfigByGroup('trade');
+        $speedRate = isset($config['speed_rate'])? floatval($config['speed_rate']['value']) : 0;
+        $speedUsdt = round($total * $speedRate/100, 2);
+        $counts = [
+            'total'=> $total,
+            'speed_rate'=> $speedRate,
+            'speed_usdt'=> $speedUsdt,
+            'speed_total'=> CoinRate::transfer($speedUsdt),
+            'rate'=> $speedRate,
+        ];
+
+        return $counts;
+    }
+
+
+
+}

+ 22 - 0
application/common/model/User.php

@@ -134,4 +134,26 @@ class User extends Model
         }
         return $level;
     }
+
+    /**
+     * 递归获取下级代理用户ID
+     * @param $userId 当前用户ID
+     * @param array $uids
+     * @return array|mixed
+     */
+    public static function getLowerIds($userId, $uids=[])
+    {
+            if(empty($uids)){
+                $uids = is_array($userId)? $userId : [$userId];
+            }
+            $lowers = self::whereIn('refereeid', is_array($userId)? $userId : [$userId])->column('id');
+            $lowers = $lowers? array_values($lowers) : [];
+            if($lowers){
+                $uids = array_merge($uids, $lowers);
+                $uids = array_unique($uids);
+                $uids = self::getLowerIds($lowers, $uids);
+            }
+
+            return $uids;
+    }
 }

+ 1 - 1
application/database.php

@@ -16,7 +16,7 @@ return [
     // 数据库类型
     'type'            => Env::get('database.type', 'mysql'),
     // 服务器地址
-    'hostname'        => Env::get('database.hostname', '127.0.0.1'),
+    'hostname'        => Env::get('database.hostname', '47.112.222.163'),
     // 数据库名
     'database'        => Env::get('database.database', 'world'),
     // zxepz

+ 7 - 0
application/extra/site.php

@@ -24,6 +24,7 @@ return array (
     'basic' => 'Basic',
     'email' => 'Email',
     'dictionary' => 'Dictionary',
+    'trade' => '交易配置',
     'account' => '支付管理',
     'Iindex' => '前台图片',
   ),
@@ -50,4 +51,10 @@ return array (
   'index_banner2' => '/uploads/20220621/141a1bbe0ae3339948ab2132dae63cb5.jpg',
   'verify_code' => '666666',
   'share_bg' => '/uploads/20220620/fa545783b0905038e19d786182d226f2.jpg',
+  'award_base' => '100',
+  'withdraw_fee' => '2',
+  'release_rate' => '0.2',
+  'speed_rate' => '0.2',
+  'withdraw_min' => '1',
+  'withdraw_cap' => '10',
 );

+ 13 - 0
application/shop/controller/Index.php

@@ -3,6 +3,8 @@ namespace app\shop\controller;
 use app\api\controller\Token;
 use app\common\controller\Frontend;
 
+use app\common\library\CoinRate;
+use app\common\model\Config;
 use app\common\model\User;
 use think\Session;
 
@@ -46,9 +48,20 @@ class Index extends Frontend
                 $cats[$k]['jctime1']=0;
             }
         }
+
+        $awards = \app\common\model\Trade::getAwardTotal();
+        $counts = \app\common\model\Trade::getSpeedTotalByUser($this->auth->id);
+        $awards = [
+            'total'=> isset($awards['total'])? $awards['total'] : 0,
+            'total_usdt'=> isset($awards['total_usdt'])? $awards['total_usdt'] : 0,
+            'speed_total'=> isset($counts['speed_total'])? $counts['speed_total'] : 0,
+            'speed_usdt'=> isset($counts['speed_usdt'])? $counts['speed_usdt'] : 0,
+        ];
+
         $this->view->assign([
             'slideshow'=>$slideshow,
             'cats' => $cats,
+            'awards'=> $awards,
             'index_order'=>$index_order,
             'artist'=>$artist,
             'title'=>$sinfo['name'],

+ 11 - 1
application/shop/controller/User.php

@@ -2,6 +2,8 @@
 
 namespace app\shop\controller;
 use app\common\controller\Frontend;
+use app\common\library\CoinRate;
+use app\common\model\Config;
 
 class User extends Frontend{
 	
@@ -210,16 +212,24 @@ class User extends Frontend{
     }
     function withdraw()
     {
-        $config=db('bonus_config')->where('id',6)->find();
+        $tradeConfig = Config::getConfigByGroup('trade');
+        $config['withdraw_min'] = isset($tradeConfig['withdraw_min'])? $tradeConfig['withdraw_min']['value'] : 0;
+        $config['withdraw_cap'] = isset($tradeConfig['withdraw_cap'])? $tradeConfig['withdraw_cap']['value'] : 0;
+        $config['withdraw_fee'] = isset($tradeConfig['withdraw_fee'])? $tradeConfig['withdraw_fee']['value'] : 0;
         $this->view->assign("config",$config);
         $user=get_user_data($this->auth->id);
         $this->view->assign("user",$user);
+        $this->view->assign("coinRate",CoinRate::getRate());
         return $this->view->fetch();
     }
     function withdrawdetaile()
     {
         return $this->view->fetch();
     }
+    function releaselog()
+    {
+        return $this->view->fetch();
+    }
     function bonuspage()
     {
         $user=get_user_data($this->auth->id);

+ 46 - 2
application/shop/view/index/index.html

@@ -50,6 +50,29 @@
 			.am-thumbnails > li{
 				padding: 0 0.5rem;
 			}
+
+			.am-text-center .menu-box .menu {
+				width: 118rpx;
+				text-align: center;
+				vertical-align: middle;
+				margin: 10px;
+				border-radius: 100%;
+				background: url('__CDN__/assets/shop/img/menu.jpeg');
+				color: #fff;
+				height: 118px;
+			}
+
+			.am-text-center .menu-box .menu .text {
+				padding-top: 24px;
+				font-weight: bold;
+			}
+			.am-text-center .menu-box {
+				width: 138px;
+				height: 138px;
+			}
+			.am-text-center .menu-box .log {
+				line-height: 65px;
+			}
 		</style>
 	</head>
 	<body style="background:#ff7f27">
@@ -72,12 +95,32 @@
 				<span><img src="__CDN__/assets/shop/img/index1.png" width="20"/></span>订单列表
 			</div>-->
 			<ul class="am-avg-sm-3 am-text-center am-padding-bottom-sm am-padding-top-sm">
+				<li class="menu-box">
+					<div class="menu">
+						<div class="text"><span class=" award">{$awards.total_usdt}</span></div>
+						<div class="am-padding-top-xs">流拍金额<br>(usdt)</div>
+					</div>
+				</li>
+				<li class="menu-box">
+					<div class="menu">
+						<div class="text"><span class=" speed">{$awards.speed_usdt}</span></div>
+						<div class="am-padding-top-xs">加速金额<br>(usdt)</div>
+					</div>
+				</li>
+				<li class="menu-box" onclick="window.location='/shop/user/releaselog'">
+					<div class="menu log">
+						<div class="text"></div>
+						<div class="am-padding-top-xs">分成明细</div>
+					</div>
+				</li>
+			</ul>
+			<ul class="am-avg-sm-3 am-text-center am-padding-bottom-sm am-padding-top-sm">
 				<li onclick="window.location='/shop/trade/trade1'" >
-					<div class=""><img src="{$index_order[0]}" width="75%" style="border-radius:100%;"/></div>
+					<div class="text"><img src="{$index_order[0]}" width="75%" style="border-radius:100%;"/></div>
 					<div class="am-padding-top-xs">等待付款</div>
 				</li>
 				<li  onclick="window.location='/shop/trade/trade2'">
-					<div class=""><img src="{$index_order[0]}" width="75%" style="border-radius:100%;"/></div>
+					<div class="text"><img src="{$index_order[0]}" width="75%" style="border-radius:100%;"/></div>
 					<div class="am-padding-top-xs">收款确认</div>
 				</li>
 				<li  onclick="window.location='/shop/trade/trade3'">
@@ -85,6 +128,7 @@
 					<div class="am-padding-top-xs">委托代卖</div>
 				</li>
 			</ul>
+
 			<!--banner1-->
 			<div>
 				<img src="{:config('site')['index_banner1']}" width="100%"/>

+ 29 - 0
application/shop/view/trade/trade3.html

@@ -58,7 +58,12 @@
                             {elseif $v['issell'] ==1/}
                                 待画室长确认
                             {elseif $v['issell'] ==2/}
+                                {if $v['on_resale'] == 1}
+                                已置换
+                                {else/}
                                 已代售
+                                {/if}
+
                             {else/}
                                 已自提
                             {/if}
@@ -88,6 +93,9 @@
                             <span><input type="button" class="am-btn am-btn-danger am-btn-xs" value="代售" onclick="tosell({$v.id})"></span>&nbsp;&nbsp;
                             <span><input type="button" class="am-btn am-btn-success am-btn-xs" value="发货到家" onclick="toorder({$v['id']},0)"></span>
                             {/if}
+                            {if $v['issell'] == 2 && $v['on_resale'] != 1}
+                            <span><input type="button" class="am-btn am-btn-danger am-btn-xs" value="转售平台" onclick="toresell({$v.id})"></span>&nbsp;&nbsp;
+                            {/if}
                            <span><input type="button" class="am-btn am-btn-default am-btn-xs" value="订单详情" onclick="showtrade({$v.id})"></span>
                          </div>
                     </div>
@@ -163,6 +171,27 @@
 
         });
     }
+    function toresell(e)
+    {
+        //询问框
+        layer.confirm('确认要转售此商品给平台?', {
+            title:'提示',
+            btn: ['确认','取消'] //按钮
+        }, function(){
+            jQuery.post("{:url('api/trade/resaletrade')}" ,{id:e,type:1},function(data) {
+                if(data.code>0)
+                {
+                    layer.msg(data.msg,{time:1000},function(){
+                        location=location;
+                    });
+                }else{
+                    layer.msg(data.msg);
+                }
+            });
+        }, function(){
+
+        });
+    }
     function tochange(e)
     {
         location="/shop/trade/changestudio/goodsid/"+e;

+ 18 - 8
application/shop/view/user/profile.html

@@ -53,7 +53,16 @@
 <!-- Content -->
 <div class="wapper " data-html="form" style="padding-top:49px">
 	<div class="  am-form am-form-horizontal invest-form am-padding-bottom-xs" >
-		<div class="am-link-muted am-padding-xs">银行收款</div>
+		<div class="am-link-muted am-padding-xs">USDT收款</div>
+		<div class="am-bg-white">
+			<div class="am-form-group sc-bg">
+				<label class="am-u-sm-3 am-form-label">输入钱包地址</label>
+				<div class="am-u-sm-9">
+					<input type="text" class=" am-text-right" placeholder="{:__('请输入USDT钱包地址')}" name="usdt_address" value="{$user.usdt_address}">
+				</div>
+			</div>
+		</div>
+		<!--<div class="am-link-muted am-padding-xs">银行收款</div>
 		<div class="am-bg-white">
 			<div class="am-form-group sc-bg">
 				<label class="am-u-sm-3 am-form-label">输入银行</label>
@@ -73,7 +82,7 @@
 					<input type="text" class=" am-text-right" placeholder="{:__('请输入银行卡号')}" name="bank_number" value="{$user.bank_number}">
 				</div>
 			</div>
-		</div>
+		</div>-->
 		<!--
 		<div class="am-link-muted am-padding-xs">微信收款</div>
 		<div class="am-bg-white">
@@ -210,12 +219,13 @@
 		//params.alipayprc=$('#alipayprc').val();
 		//params. wxprc=$('#wxprc').val();
 		
-		params.alipayname='';
-		params.alipayprc='';
-		params.wxprc='';
-		params.bank=$('input[name=bank]').val();
-		params.bank_number=$('input[name=bank_number]').val();
-		params.bank_user_name=$('input[name=bank_user_name]').val();
+		params.usdt_address=$('input[name=usdt_address]').val();
+		//params.alipayname='';
+		//params.alipayprc='';
+		//params.wxprc='';
+		//params.bank=$('input[name=bank]').val();
+		//params.bank_number=$('input[name=bank_number]').val();
+		//params.bank_user_name=$('input[name=bank_user_name]').val();
         params.verify=$('#verify').val();
 		jQuery.post("{:url('api/user/profile')}" ,params,function(data) {
             if(data.code>0)

+ 107 - 0
application/shop/view/user/releaselog.html

@@ -0,0 +1,107 @@
+<!doctype html>
+<html class="no-js">
+	<head>
+		<meta charset="utf-8">
+		<meta http-equiv="X-UA-Compatible" content="IE=edge">
+		<meta name="description" content="">
+		<meta name="keywords" content="">
+		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+		<title>{:__('释放分成明细')}</title>
+		<!-- Set render engine for 360 browser -->
+		<meta name="renderer" content="webkit">
+		<link rel="stylesheet" href="__CDN__/assets/shop/css/amazeui.css">
+		<link rel="stylesheet" href="__CDN__/assets/shop/css/app.css">
+		<style type="text/css">
+			.am-list li{
+				background-color: #FFF;
+				padding: 0.625rem;
+				border-radius: .5rem;
+				margin-bottom: 1rem;
+			}
+			body{color:#333;}
+		</style>
+	</head>
+
+	<body>
+		<!-- Header -->
+		<header data-am-widget="header" class="am-header am-header-default">
+			<div class="am-header-left am-header-nav">
+          		<a href="javascript:void(0);" onclick="javascript:history.back(-1);return false;"><i class="am-header-icon am-icon-angle-left"></i></a>
+      		</div>
+			<h1 class="am-header-title">
+				<a href="#title-link">{:__('释放分成明细')}</a>
+			</h1>
+		</header>
+		<!-- Content -->
+		<div class="wapper" style="padding-top: 49px">
+			<div class="am-margin-xs">
+				<ul class="am-list">
+				
+				</ul>
+				<div class="am-alert tips-text am-text-center" style="display: none;">{:__('加载完毕')}</div>
+			</div>
+		</div>
+		
+		<script src="__CDN__/assets/shop/js/jquery.min.js"></script>
+		<script src="__CDN__/assets/shop/js/amazeui.min.js"></script>
+		<script src="__CDN__/assets/shop/js/amazeui.dialog.js"></script>
+		<script>
+			var pag = 1, page;  //p当前页,page总页数
+			getList();
+			function getList(){
+				jQuery.post("{:url('api/user/releaselog')}" ,{p:pag},function(data) {
+					console.log(data.data);
+					if(data.data != null && data.data.length != 0){
+						page=data.total;
+						var json=data.data;
+						var btn='';
+						for(var i = 0; i < json.length; i++){
+							var _ = '<li>'+
+										'<div class="am-padding-bottom-xs">'+
+											'<span >类型<em class="am-text-success am-padding-left-xs">'+(json[i].type==1?'转售释放':'其他')+'</em></span>'+
+											btn+
+										'</div>'+
+								        '<div class=" am-margin-right">{:__("释放总额")}<em class="am-text-warning am-padding-left-xs">'+json[i].usdt_num+' USDT</em></div>'+
+								        '<div class=" am-margin-right">{:__("加速值")}<em class="am-text-warning am-padding-left-xs">'+json[i].speed_usdt+' USDT</em></div>'+
+								        '<div class=" am-margin-right">{:__("到账金额")}<em class="am-text-warning am-padding-left-xs">'+json[i].money+' 元</em></div>'+
+										'<div class="am-margin-right">{:__("当前余额")}<em class="am-text-warning am-padding-left-xs">'+json[i].balance+' 元</em></div>'+
+										'<div >{:__("时间")}<em class="am-text-warning am-padding-left-xs">'+json[i].times+'</em></div>'+
+										'<div >{:__("状态")}<em class="'+(json[i].status==1? 'am-text-success':'am-text-warning')+' am-padding-left-xs">'+(json[i].status==1?'已到账':'待处理')+'</em></div>'+
+									'</li>';
+
+							$('.am-list').append(_);
+						}
+					}else{
+						$('.am-list').html('<li class="am-padding-top-xs am-padding-bottom-xs am-text-center am-link-muted">{:__("暂无数据")}</li>')
+					}
+				});
+			}
+			//滚动分页
+			window.onscroll = function(){
+				var top = document.body.scrollTop || document.documentElement.scrollTop;
+				var height = document.body.scrollHeight || document.documentElement.scrollHeight;
+				if((top + window.innerHeight) >= height-49){
+					pag = pag + 1;
+					if(pag > page){
+						pag = page;
+						$('.tips-text').show();
+						return;
+					}
+					//从后台获取列表数据
+					getList();
+				}
+			}
+			function review(e)
+			{
+				AMUI.dialog.confirm({
+					title : "{:__('失败原因')}",
+					content : e,
+					onCancel : function(){
+						console.log('取消');
+					}
+				})
+				
+			}
+		</script>
+	</body>
+</html>

+ 41 - 9
application/shop/view/user/withdraw.html

@@ -43,21 +43,37 @@
 					<div class="am-form-group">
 						<label class="am-u-sm-3 am-form-label">提现金额</label>
 						<div class="am-u-sm-9">
-							<input type="text" value="" name="money" class=" " placeholder="{:__('请输入提币金额')}">
+							<input type="text" id="money" value="" name="money" class=" " placeholder="{:__('请输入提币金额')}" onChange="changeMoney(this)">
 						</div>
 					</div>
+					<div class="am-form-group">
+						<label class="am-u-sm-3 am-form-label">手续费</label>
+						<div class="am-u-sm-9">
+							<input type="text" id="fee" value="0.00"  readonly >
+						</div>
+					</div>
+					<div class="am-form-group">
+						<label class="am-u-sm-3 am-form-label">所得USDT</label>
+						<div class="am-u-sm-9">
+							<input type="text" id="usdt" value="0.00" name="usdt_num" readonly >
+						</div>
+					</div>
+
 					<div class="line"></div>
 					<div class="am-form-group">
 						<label class="am-u-sm-3 am-form-label">提现方式</label>
 						<div class="am-u-sm-6 ">
+<!--							<label class="am-radio-inline am-green">-->
+<!--								<input type="radio"  value="" name="type" data-am-ucheck checked>USDT-->
+<!--							</label>-->
+<!--							<label class="am-radio-inline am-green">-->
+<!--								<input type="radio" value="2" name="type" data-am-ucheck>微信-->
+<!--							</label>-->
+<!--							<label class="am-radio-inline am-green">-->
+<!--								<input type="radio" value="3" name="type" data-am-ucheck>银行卡-->
+<!--							</label>-->
 							<label class="am-radio-inline am-green">
-								<input type="radio"  value="1" name="type" data-am-ucheck checked>支付宝
-							</label>
-							<label class="am-radio-inline am-green">
-								<input type="radio" value="2" name="type" data-am-ucheck>微信
-							</label>
-							<label class="am-radio-inline am-green">
-								<input type="radio" value="3" name="type" data-am-ucheck>银行卡
+								<input type="radio"  value="4" name="type" data-am-ucheck checked>USDT
 							</label>
 						</div>
 						<div class="am-u-sm-3 am-padding-0 am-inline-block">
@@ -75,7 +91,7 @@
 				</form>
 			</div>
 		</div>
-		<p class="am-text-xs am-padding-sm "><em class="am-text-danger">提示:</em>提现金额为{$config.cap}倍数,大于{$config.max_layer}起提</p>
+		<p class="am-text-xs am-padding-sm "><em class="am-text-danger">提示:</em>提现金额为{$config.withdraw_cap}的倍数,最低{$config.withdraw_min}元,汇率1元={$coinRate}USDT</p>
 			<div class="am-margin-sm">
 				<button type="button" class="am-btn am-btn-danger am-round am-btn-block" id="submit">{:__('确定')}</button>
 			</div>
@@ -83,6 +99,21 @@
 		<script src="__CDN__/assets/shop/js/amazeui.min.js"></script>
 		<script src="__CDN__/assets/libs/layer/layer.js"></script>
 		<script>
+			function changeMoney(ele){
+				var money = $(ele).val()
+				if(money>0){
+					var coinRate = parseFloat("{$coinRate}");
+					var feeRate = parseFloat("{$config.withdraw_fee}");
+					var fee = parseFloat(money*feeRate*0.01);
+					var usdt = parseFloat((money-fee)*coinRate).toFixed(2);
+					$("#fee").val(fee);
+					$("#usdt").val(usdt);
+				}else{
+					$("#usdt").val('0.00');
+				}
+
+				console.log(coinRate)
+			}
 			$('#submit').click(function(){
 				 var formData = new FormData($('#form1')[0]);
 		            $.ajax({
@@ -94,6 +125,7 @@
 		                success: function(data) {
 		                	if(data.code>0)
 	                		{
+	                			$("#money").val('')
 		                		 layer.msg(data.msg,{time:1000},function(){
 				                    	location="{:url('shop/user/withdrawdetaile')}";
 				                    }); 

+ 2 - 1
application/shop/view/user/withdrawdetaile.html

@@ -63,8 +63,9 @@
 										'</div>'+
 								        '<div class=" am-margin-right">{:__("提现金额")}<em class="am-text-warning am-padding-left-xs">'+json[i].amount+'</em></div>'+
 									    '<div >{:__("手续费")}<em class="am-text-warning am-padding-left-xs">'+json[i].fee+'</em></div>'+
-										'<div class="am-margin-right">{:__("到账金额")}<em class="am-text-warning am-padding-left-xs">'+json[i].fack_receive+'</em></div>'+
+										'<div class="am-margin-right">{:__("到账USDT")}<em class="am-text-warning am-padding-left-xs">'+json[i].usdt_num+'</em></div>'+
 										'<div >{:__("时间")}<em class="am-text-warning am-padding-left-xs">'+json[i].times+'</em></div>'+
+										'<div >{:__("状态")}<em class="'+(json[i].process_status==2? 'am-text-success':'am-text-warning')+' am-padding-left-xs">'+(json[i].process_status==2?'已通过':(json[i].process_status==-1?'已拒绝'+(json[i].remark?'('+json[i].remark+')':'')+'':'待审核'))+'</em></div>'+
 									'</li>';
 
 							$('.am-list').append(_);

+ 13 - 12
public/assets/js/backend/bonus/withdrawals.js

@@ -27,8 +27,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'withdraw_date', title: __('Withdraw_date'), formatter: Table.api.formatter.datetime},
                         {field: 'amount', title: __('Amount'), operate:'BETWEEN'},
                         {field: 'fee', title: __('Fee'), operate:'BETWEEN'},
-                       
                         {field: 'fack_receive', title: __('Fack_receive'), operate:'BETWEEN'},     
+                        {field: 'usdt_num', title: __('到账USDT'), operate:'BETWEEN'},
+                        {field: 'usdt_address', title: __('收款USDT钱包'), operate:'BETWEEN'},
                         {field: 'prc', title: __('收款码'), operate:'BETWEEN', formatter: Table.api.formatter.image},
                         {field: 'name', title: __('姓名'), operate:'BETWEEN'},
                         {field: 'money_type_name', title: __('Money_type')},
@@ -36,17 +37,17 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'remark', title: __('Remark')},
                         {field: 'operate', title: __('Operate'),
                         	 buttons: [
-                                         {
-                                             name: 'showprc',
-                                             text: '查看收款码',
-                                             title: '查看收款码',
-                                             icon: 'fa fa-circle',
-                                             classname: 'btn btn-xs btn-info btn-dialog',
-                                             url: 'bonus/withdrawals/toshow',
-                                             callback: function (data) {
-                                                 window.location.reload();
-                                             }
-                                         },
+                                         // {
+                                         //     name: 'showprc',
+                                         //     text: '查看收款码',
+                                         //     title: '查看收款码',
+                                         //     icon: 'fa fa-circle',
+                                         //     classname: 'btn btn-xs btn-info btn-dialog',
+                                         //     url: 'bonus/withdrawals/toshow',
+                                         //     callback: function (data) {
+                                         //         window.location.reload();
+                                         //     }
+                                         // },
                             	          {
                             	        	  name: 'view',
                             	        	  text: '审核',

BIN=BIN
public/assets/shop/img/menu.jpeg


BIN=BIN
public/uploads/20220619/0024826f3089ee698461529e03cb2509.jpeg


BIN=BIN
public/uploads/20220619/10989419f96d6ca72886ee36a544df63.jpeg


BIN=BIN
public/uploads/20220619/1967c287c3fdf2925ce6d486817235d1.png


BIN=BIN
public/uploads/20220619/33c8bbf7024830522b2fcd76adcf68e0.jpeg


BIN=BIN
public/uploads/20220619/3648ee84ed14ae2dbd596aa376219d7a.jpg


BIN=BIN
public/uploads/20220619/3e8e51bd4820cb748845329ac6532a3b.jpg


BIN=BIN
public/uploads/20220619/3fb62c9121479631e73ba34bd2d5bcff.jpg


BIN=BIN
public/uploads/20220619/41623f82a03e90d2496735f456c32821.jpeg


BIN=BIN
public/uploads/20220619/424146a649447f188a424fa4e1cadeb9.jpg


BIN=BIN
public/uploads/20220619/424cb95bfe09cf61ba77a833fa49b8bb.jpg


BIN=BIN
public/uploads/20220619/441008a7cd6e82063eafdb662a0149ef.jpeg


BIN=BIN
public/uploads/20220619/4d32d86baecb90f761b05b0b94c3d058.jpeg


BIN=BIN
public/uploads/20220619/4e81c65e154e52d221703d138e52e665.jpeg


BIN=BIN
public/uploads/20220619/59212071c96cf32e099001816e9f476b.jpeg


BIN=BIN
public/uploads/20220619/5b59526ed5069dadb3a42066fcbc8ec2.jpg


BIN=BIN
public/uploads/20220619/5f0306d6f6a939f6b4e0d69e2a4ba356.jpeg


BIN=BIN
public/uploads/20220619/63666c971ad15beb32f3c61a7285cd53.jpg


BIN=BIN
public/uploads/20220619/70ac218cdbdfcc38e4c6655a2a355fb9.jpg


BIN=BIN
public/uploads/20220619/7288553f2ce36bd5e93682ee2f99bfcc.jpg


BIN=BIN
public/uploads/20220619/799dd55b8b5fb76a9d9ed4b5dbdf3fef.jpeg


BIN=BIN
public/uploads/20220619/7d7ef53e67366825f6eb9ea011eb97d0.jpg


BIN=BIN
public/uploads/20220619/8d24b0d13cffe335762a1e6a475b56c1.jpeg


BIN=BIN
public/uploads/20220619/8da51c1a054d33e97794efff43c2cb8b.jpeg


BIN=BIN
public/uploads/20220619/943af8f10886b6d2db423138724bbf12.jpeg


BIN=BIN
public/uploads/20220619/96e5713a66d1690ca3952d98fae4f1de.jpeg


BIN=BIN
public/uploads/20220619/971cac39e593656ec1342811a8c39b19.jpg


BIN=BIN
public/uploads/20220619/9764dd6855c08abec9db0d6548507ca0.jpg


BIN=BIN
public/uploads/20220619/983346e72e4010d6e1d630daa2ed1dad.jpeg


BIN=BIN
public/uploads/20220619/a0e5d137664b11871e8724b50737970d.jpg


BIN=BIN
public/uploads/20220619/a22d9fdf41e32d7a3e4044d1e697f784.jpg


BIN=BIN
public/uploads/20220619/a32ffdf4d4543bd103bc564daa1225ec.jpg


BIN=BIN
public/uploads/20220619/a8c7104d7c863d300f216fd07a29d643.jpg


BIN=BIN
public/uploads/20220619/ae8ba195f354e78781066b8e4d62d4d5.jpeg


BIN=BIN
public/uploads/20220619/b518b380963166584c233c9b786a1d5c.jpg


BIN=BIN
public/uploads/20220619/b67f3562d7c9f9b91ad066fbab180d1c.jpeg


BIN=BIN
public/uploads/20220619/bb37011630f6442d9be5ddea2b937c9d.jpg


BIN=BIN
public/uploads/20220619/be523685d824b205dfb70aa72669e4cb.jpeg


BIN=BIN
public/uploads/20220619/c1a5e0a2980bcf07ee6baba9aaf30c52.jpeg


BIN=BIN
public/uploads/20220619/c21de8d96ed7943c1a602b1a71389957.jpeg


BIN=BIN
public/uploads/20220619/c6425e8d3ea25541dc977adddc839314.jpeg


BIN=BIN
public/uploads/20220619/cbafd15eacdf3772c89e56991c35838a.jpg


BIN=BIN
public/uploads/20220619/cee5d2e58abfaf743400611518d5a60a.png


BIN=BIN
public/uploads/20220619/cfaf7d148c0b41ca1d40552d36a7bb87.jpg


BIN=BIN
public/uploads/20220619/d206ecdc60f3c70e6bb986955ff0e05f.jpg


BIN=BIN
public/uploads/20220619/d8dee30f0e1ed19f7461001ce00ac19b.jpg


BIN=BIN
public/uploads/20220619/da15d97cfededcb0ee96da22da8f3b40.jpg


BIN=BIN
public/uploads/20220619/e9c36743ec373a5b16a4e8fa685c6ef4.jpeg


BIN=BIN
public/uploads/20220619/f520dd45effa1723ee30fc5de369c8c7.jpeg


BIN=BIN
public/uploads/20220619/f995e88515e516e76f52ef30e7ba89e1.jpg


BIN=BIN
public/uploads/20220907/d0768ad682c5f22ab23333b0a93e0134.jpg


+ 4 - 0
runtime/cache/20/d4200196dabff54c778f361b85aa6a.php

@@ -0,0 +1,4 @@
+<?php
+//001663277744
+ exit();?>
+a:4:{s:8:"fromCode";d:691.01;s:4:"rate";d:0.1447;s:6:"toCode";d:100;s:7:"expired";i:1663277744;}

+ 4 - 0
runtime/cache/4e/819c837d54a6ed09abc77a8560a66f.php

@@ -0,0 +1,4 @@
+<?php
+//000000000000
+ exit();?>
+a:0:{}

+ 4 - 0
runtime/cache/5d/d54d46e0aae520c6f1b29c30206df2.php

@@ -0,0 +1,4 @@
+<?php
+//001663277744
+ exit();?>
+a:4:{s:8:"fromCode";d:100;s:4:"rate";d:6.9101;s:6:"toCode";d:691.01;s:7:"expired";i:1663277744;}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 32944 - 0
runtime/log/202209/05.log


+ 672 - 0
runtime/log/202209/06.log

@@ -0,0 +1,672 @@
+---------------------------------------------------------------
+[ 2022-09-06T03:55:59+08:00 ] 127.0.3.50 GET 127.0.3.50/shop/index/index
+[运行时间:0.793230s] [吞吐率:1.26req/s] [内存消耗:965.28kb] [文件加载:130]
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000025s ]
+[ info ] [ CACHE ] INIT File
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003522s ]
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/thinkphp/lang/zh-cn.php
+[ info ] [ ROUTE ] array (
+  'type' => 'module',
+  'module' => 
+  array (
+    0 => 'shop',
+    1 => 'index',
+    2 => 'index',
+  ),
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'PHPSESSID=q4rf288gjcoefour14ets6m3ue; uid=92; token=95746187-01aa-4417-a92d-9d719319cf36',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'referer' => 'http://127.0.3.50/index/user/login.html',
+  'sec-fetch-dest' => 'empty',
+  'sec-fetch-mode' => 'no-cors',
+  'sec-fetch-site' => 'same-origin',
+  'accept' => '*/*',
+  'sec-ch-ua-platform' => '"macOS"',
+  'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36',
+  'sec-ch-ua-mobile' => '?0',
+  'sec-ch-ua' => '"Chromium";v="104", " Not A;Brand";v="99", "Google Chrome";v="104"',
+  'connection' => 'keep-alive',
+  'host' => '127.0.3.50',
+  'content-length' => '',
+  'content-type' => '',
+)
+[ info ] [ PARAM ] array (
+)
+[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.003684s ]
+[ info ] [ TOKEN ] INIT Mysql
+[ info ] [ DB ] INIT mysql
+[ info ] [ RUN ] app\shop\controller\Index->index[ /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/application/shop/controller/Index.php ]
+[ info ] [ VIEW ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/shop/view/index/index.html [ array (
+  0 => 'user',
+  1 => 'site',
+  2 => 'config',
+  3 => 'slideshow',
+  4 => 'cats',
+  5 => 'awards',
+  6 => 'index_order',
+  7 => 'artist',
+  8 => 'title',
+) ]
+[ info ] [ LOG ] INIT File
+[ sql ] [ DB ] CONNECT:[ UseTime:0.075693s ] mysql:host=47.112.222.163;dbname=world;charset=utf8
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user_token` [ RunTime:0.049860s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user_token` WHERE  `token` = '64ca6c8a925aa5490ad78c39e5fde9f2cf330648' LIMIT 1 [ RunTime:0.046681s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user` [ RunTime:0.049888s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.047709s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_studio` [ RunTime:0.050134s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_studio` WHERE  `title` = 'SSC666666' LIMIT 1 [ RunTime:0.047905s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_ads` [ RunTime:0.050146s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_ads` WHERE  `status` = 1  AND `studio` = 'SSC666666' [ RunTime:0.047592s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_article` [ RunTime:0.050960s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_article` WHERE  `catid` = 2  AND `status` = 1 [ RunTime:0.048223s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_goods_cats` [ RunTime:0.050139s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_goods_cats` WHERE  `status` = 1 ORDER BY `id` ASC [ RunTime:0.046771s ]
+---------------------------------------------------------------
+[ 2022-09-06T03:56:01+08:00 ] 127.0.3.50 GET 127.0.3.50/shop/user/index.html
+[运行时间:0.321865s] [吞吐率:3.11req/s] [内存消耗:629.21kb] [文件加载:131]
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000026s ]
+[ info ] [ CACHE ] INIT File
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000444s ]
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/thinkphp/lang/zh-cn.php
+[ info ] [ ROUTE ] array (
+  'type' => 'module',
+  'module' => 
+  array (
+    0 => 'shop',
+    1 => 'user',
+    2 => 'index',
+  ),
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'PHPSESSID=q4rf288gjcoefour14ets6m3ue; uid=92; token=95746187-01aa-4417-a92d-9d719319cf36',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'referer' => 'http://127.0.3.50/shop/index/index',
+  'sec-fetch-dest' => 'document',
+  'sec-fetch-user' => '?1',
+  'sec-fetch-mode' => 'navigate',
+  'sec-fetch-site' => 'same-origin',
+  'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
+  'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
+  'upgrade-insecure-requests' => '1',
+  'cache-control' => 'no-cache',
+  'pragma' => 'no-cache',
+  'connection' => 'keep-alive',
+  'host' => '127.0.3.50',
+  'content-length' => '',
+  'content-type' => '',
+)
+[ info ] [ PARAM ] array (
+)
+[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000111s ]
+[ info ] [ TOKEN ] INIT Mysql
+[ info ] [ DB ] INIT mysql
+[ info ] [ RUN ] app\shop\controller\User->index[ /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/application/shop/controller/User.php ]
+[ info ] [ VIEW ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/shop/view/user/index.html [ array (
+  0 => 'user',
+  1 => 'site',
+  2 => 'config',
+) ]
+[ info ] [ LOG ] INIT File
+[ sql ] [ DB ] CONNECT:[ UseTime:0.068891s ] mysql:host=47.112.222.163;dbname=world;charset=utf8
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user_token` [ RunTime:0.048657s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user_token` WHERE  `token` = '64ca6c8a925aa5490ad78c39e5fde9f2cf330648' LIMIT 1 [ RunTime:0.046716s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user` [ RunTime:0.048799s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.047074s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.046974s ]
+---------------------------------------------------------------
+[ 2022-09-06T03:56:02+08:00 ] 127.0.3.50 GET 127.0.3.50/shop/trade/mydraw.html
+[运行时间:0.283242s] [吞吐率:3.53req/s] [内存消耗:629.48kb] [文件加载:131]
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000016s ]
+[ info ] [ CACHE ] INIT File
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000371s ]
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/thinkphp/lang/zh-cn.php
+[ info ] [ ROUTE ] array (
+  'type' => 'module',
+  'module' => 
+  array (
+    0 => 'shop',
+    1 => 'trade',
+    2 => 'mydraw',
+  ),
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'PHPSESSID=q4rf288gjcoefour14ets6m3ue; uid=92; token=95746187-01aa-4417-a92d-9d719319cf36',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'referer' => 'http://127.0.3.50/shop/user/index.html',
+  'sec-fetch-dest' => 'document',
+  'sec-fetch-user' => '?1',
+  'sec-fetch-mode' => 'navigate',
+  'sec-fetch-site' => 'same-origin',
+  'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
+  'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
+  'upgrade-insecure-requests' => '1',
+  'cache-control' => 'no-cache',
+  'pragma' => 'no-cache',
+  'connection' => 'keep-alive',
+  'host' => '127.0.3.50',
+  'content-length' => '',
+  'content-type' => '',
+)
+[ info ] [ PARAM ] array (
+)
+[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000115s ]
+[ info ] [ TOKEN ] INIT Mysql
+[ info ] [ DB ] INIT mysql
+[ info ] [ RUN ] app\shop\controller\Trade->mydraw[ /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/application/shop/controller/Trade.php ]
+[ info ] [ VIEW ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/shop/view/trade/mydraw.html [ array (
+  0 => 'user',
+  1 => 'site',
+  2 => 'config',
+  3 => 'type',
+) ]
+[ info ] [ LOG ] INIT File
+[ sql ] [ DB ] CONNECT:[ UseTime:0.077276s ] mysql:host=47.112.222.163;dbname=world;charset=utf8
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user_token` [ RunTime:0.049886s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user_token` WHERE  `token` = '64ca6c8a925aa5490ad78c39e5fde9f2cf330648' LIMIT 1 [ RunTime:0.047413s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user` [ RunTime:0.050020s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.048026s ]
+---------------------------------------------------------------
+[ 2022-09-06T03:56:03+08:00 ] 127.0.3.50 POST 127.0.3.50/api/trade/getmydraw.html
+[运行时间:0.416334s] [吞吐率:2.40req/s] [内存消耗:586.66kb] [文件加载:126]
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000012s ]
+[ info ] [ CACHE ] INIT File
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000252s ]
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/thinkphp/lang/zh-cn.php
+[ info ] [ ROUTE ] array (
+  'type' => 'module',
+  'module' => 
+  array (
+    0 => 'api',
+    1 => 'trade',
+    2 => 'getmydraw',
+  ),
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'PHPSESSID=q4rf288gjcoefour14ets6m3ue; uid=92; token=95746187-01aa-4417-a92d-9d719319cf36',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'referer' => 'http://127.0.3.50/shop/trade/mydraw.html',
+  'sec-fetch-dest' => 'empty',
+  'sec-fetch-mode' => 'cors',
+  'sec-fetch-site' => 'same-origin',
+  'origin' => 'http://127.0.3.50',
+  'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8',
+  'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
+  'x-requested-with' => 'XMLHttpRequest',
+  'accept' => '*/*',
+  'cache-control' => 'no-cache',
+  'pragma' => 'no-cache',
+  'content-length' => '9',
+  'connection' => 'keep-alive',
+  'host' => '127.0.3.50',
+)
+[ info ] [ PARAM ] array (
+  'p' => '1',
+  'type' => '',
+)
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/api/lang/zh-cn.php
+[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000119s ]
+[ info ] [ TOKEN ] INIT Mysql
+[ info ] [ DB ] INIT mysql
+[ info ] [ RUN ] app\api\controller\Trade->getmydraw[ /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/application/api/controller/Trade.php ]
+[ info ] [ LOG ] INIT File
+[ sql ] [ DB ] CONNECT:[ UseTime:0.066977s ] mysql:host=47.112.222.163;dbname=world;charset=utf8
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user_token` [ RunTime:0.047357s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user_token` WHERE  `token` = '64ca6c8a925aa5490ad78c39e5fde9f2cf330648' LIMIT 1 [ RunTime:0.046706s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user` [ RunTime:0.049361s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.049279s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_goods` [ RunTime:0.049591s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_goods` WHERE  `on_sale` = 1  AND `userid` = 92 ORDER BY `id` DESC LIMIT 0,10 [ RunTime:0.046754s ]
+[ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `ct_goods` WHERE  `on_sale` = 1  AND `userid` = 92 LIMIT 1 [ RunTime:0.045087s ]
+---------------------------------------------------------------
+[ 2022-09-06T03:56:04+08:00 ] 127.0.3.50 GET 127.0.3.50/shop/trade/mydraw/type/1
+[运行时间:0.222060s] [吞吐率:4.50req/s] [内存消耗:599.48kb] [文件加载:129]
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000014s ]
+[ info ] [ CACHE ] INIT File
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000297s ]
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/thinkphp/lang/zh-cn.php
+[ info ] [ ROUTE ] array (
+  'type' => 'module',
+  'module' => 
+  array (
+    0 => 'shop',
+    1 => 'trade',
+    2 => 'mydraw',
+  ),
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'PHPSESSID=q4rf288gjcoefour14ets6m3ue; uid=92; token=95746187-01aa-4417-a92d-9d719319cf36',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'referer' => 'http://127.0.3.50/shop/trade/mydraw.html',
+  'sec-fetch-dest' => 'document',
+  'sec-fetch-user' => '?1',
+  'sec-fetch-mode' => 'navigate',
+  'sec-fetch-site' => 'same-origin',
+  'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
+  'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
+  'upgrade-insecure-requests' => '1',
+  'cache-control' => 'no-cache',
+  'pragma' => 'no-cache',
+  'connection' => 'keep-alive',
+  'host' => '127.0.3.50',
+  'content-length' => '',
+  'content-type' => '',
+)
+[ info ] [ PARAM ] array (
+  'type' => '1',
+)
+[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000097s ]
+[ info ] [ TOKEN ] INIT Mysql
+[ info ] [ DB ] INIT mysql
+[ info ] [ RUN ] app\shop\controller\Trade->mydraw[ /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/application/shop/controller/Trade.php ]
+[ info ] [ VIEW ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/shop/view/trade/mydraw.html [ array (
+  0 => 'user',
+  1 => 'site',
+  2 => 'config',
+  3 => 'type',
+) ]
+[ info ] [ LOG ] INIT File
+[ sql ] [ DB ] CONNECT:[ UseTime:0.057736s ] mysql:host=47.112.222.163;dbname=world;charset=utf8
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user_token` [ RunTime:0.040596s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user_token` WHERE  `token` = '64ca6c8a925aa5490ad78c39e5fde9f2cf330648' LIMIT 1 [ RunTime:0.038764s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user` [ RunTime:0.041017s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.039146s ]
+---------------------------------------------------------------
+[ 2022-09-06T03:56:05+08:00 ] 127.0.3.50 POST 127.0.3.50/api/trade/getmydraw.html
+[运行时间:0.296411s] [吞吐率:3.37req/s] [内存消耗:521.91kb] [文件加载:126]
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000026s ]
+[ info ] [ CACHE ] INIT File
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000469s ]
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/thinkphp/lang/zh-cn.php
+[ info ] [ ROUTE ] array (
+  'type' => 'module',
+  'module' => 
+  array (
+    0 => 'api',
+    1 => 'trade',
+    2 => 'getmydraw',
+  ),
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'PHPSESSID=q4rf288gjcoefour14ets6m3ue; uid=92; token=95746187-01aa-4417-a92d-9d719319cf36',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'referer' => 'http://127.0.3.50/shop/trade/mydraw/type/1',
+  'sec-fetch-dest' => 'empty',
+  'sec-fetch-mode' => 'cors',
+  'sec-fetch-site' => 'same-origin',
+  'origin' => 'http://127.0.3.50',
+  'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8',
+  'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
+  'x-requested-with' => 'XMLHttpRequest',
+  'accept' => '*/*',
+  'cache-control' => 'no-cache',
+  'pragma' => 'no-cache',
+  'content-length' => '10',
+  'connection' => 'keep-alive',
+  'host' => '127.0.3.50',
+)
+[ info ] [ PARAM ] array (
+  'p' => '1',
+  'type' => '1',
+)
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/api/lang/zh-cn.php
+[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000159s ]
+[ info ] [ TOKEN ] INIT Mysql
+[ info ] [ DB ] INIT mysql
+[ info ] [ RUN ] app\api\controller\Trade->getmydraw[ /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/application/api/controller/Trade.php ]
+[ info ] [ LOG ] INIT File
+[ sql ] [ DB ] CONNECT:[ UseTime:0.048877s ] mysql:host=47.112.222.163;dbname=world;charset=utf8
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user_token` [ RunTime:0.035154s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user_token` WHERE  `token` = '64ca6c8a925aa5490ad78c39e5fde9f2cf330648' LIMIT 1 [ RunTime:0.032278s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user` [ RunTime:0.035364s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.033681s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_goods` [ RunTime:0.036481s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_goods` WHERE  `istrade` = 0  AND `on_sale` = 1  AND `userid` = 92 ORDER BY `id` DESC LIMIT 0,10 [ RunTime:0.034437s ]
+[ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `ct_goods` WHERE  `istrade` = 0  AND `on_sale` = 1  AND `userid` = 92 LIMIT 1 [ RunTime:0.033131s ]
+---------------------------------------------------------------
+[ 2022-09-06T03:56:05+08:00 ] 127.0.3.50 GET 127.0.3.50/shop/trade/mydraw/type/2
+[运行时间:0.278824s] [吞吐率:3.59req/s] [内存消耗:599.01kb] [文件加载:129]
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000073s ]
+[ info ] [ CACHE ] INIT File
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.016200s ]
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/thinkphp/lang/zh-cn.php
+[ info ] [ ROUTE ] array (
+  'type' => 'module',
+  'module' => 
+  array (
+    0 => 'shop',
+    1 => 'trade',
+    2 => 'mydraw',
+  ),
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'PHPSESSID=q4rf288gjcoefour14ets6m3ue; uid=92; token=95746187-01aa-4417-a92d-9d719319cf36',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'referer' => 'http://127.0.3.50/shop/trade/mydraw/type/1',
+  'sec-fetch-dest' => 'document',
+  'sec-fetch-user' => '?1',
+  'sec-fetch-mode' => 'navigate',
+  'sec-fetch-site' => 'same-origin',
+  'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
+  'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
+  'upgrade-insecure-requests' => '1',
+  'cache-control' => 'no-cache',
+  'pragma' => 'no-cache',
+  'connection' => 'keep-alive',
+  'host' => '127.0.3.50',
+  'content-length' => '',
+  'content-type' => '',
+)
+[ info ] [ PARAM ] array (
+  'type' => '2',
+)
+[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000093s ]
+[ info ] [ TOKEN ] INIT Mysql
+[ info ] [ DB ] INIT mysql
+[ info ] [ RUN ] app\shop\controller\Trade->mydraw[ /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/application/shop/controller/Trade.php ]
+[ info ] [ VIEW ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/shop/view/trade/mydraw.html [ array (
+  0 => 'user',
+  1 => 'site',
+  2 => 'config',
+  3 => 'type',
+) ]
+[ info ] [ LOG ] INIT File
+[ sql ] [ DB ] CONNECT:[ UseTime:0.068474s ] mysql:host=47.112.222.163;dbname=world;charset=utf8
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user_token` [ RunTime:0.048073s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user_token` WHERE  `token` = '64ca6c8a925aa5490ad78c39e5fde9f2cf330648' LIMIT 1 [ RunTime:0.045842s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user` [ RunTime:0.048952s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.047045s ]
+---------------------------------------------------------------
+[ 2022-09-06T03:56:05+08:00 ] 127.0.3.50 POST 127.0.3.50/api/trade/getmydraw.html
+[运行时间:0.287780s] [吞吐率:3.47req/s] [内存消耗:521.91kb] [文件加载:126]
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000016s ]
+[ info ] [ CACHE ] INIT File
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000382s ]
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/thinkphp/lang/zh-cn.php
+[ info ] [ ROUTE ] array (
+  'type' => 'module',
+  'module' => 
+  array (
+    0 => 'api',
+    1 => 'trade',
+    2 => 'getmydraw',
+  ),
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'PHPSESSID=q4rf288gjcoefour14ets6m3ue; uid=92; token=95746187-01aa-4417-a92d-9d719319cf36',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'referer' => 'http://127.0.3.50/shop/trade/mydraw/type/2',
+  'sec-fetch-dest' => 'empty',
+  'sec-fetch-mode' => 'cors',
+  'sec-fetch-site' => 'same-origin',
+  'origin' => 'http://127.0.3.50',
+  'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8',
+  'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
+  'x-requested-with' => 'XMLHttpRequest',
+  'accept' => '*/*',
+  'cache-control' => 'no-cache',
+  'pragma' => 'no-cache',
+  'content-length' => '10',
+  'connection' => 'keep-alive',
+  'host' => '127.0.3.50',
+)
+[ info ] [ PARAM ] array (
+  'p' => '1',
+  'type' => '2',
+)
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/api/lang/zh-cn.php
+[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000149s ]
+[ info ] [ TOKEN ] INIT Mysql
+[ info ] [ DB ] INIT mysql
+[ info ] [ RUN ] app\api\controller\Trade->getmydraw[ /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/application/api/controller/Trade.php ]
+[ info ] [ LOG ] INIT File
+[ sql ] [ DB ] CONNECT:[ UseTime:0.046034s ] mysql:host=47.112.222.163;dbname=world;charset=utf8
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user_token` [ RunTime:0.034064s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user_token` WHERE  `token` = '64ca6c8a925aa5490ad78c39e5fde9f2cf330648' LIMIT 1 [ RunTime:0.034693s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user` [ RunTime:0.038013s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.032163s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_goods` [ RunTime:0.033404s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_goods` WHERE  `istrade` = 1  AND `on_sale` = 1  AND `userid` = 92 ORDER BY `id` DESC LIMIT 0,10 [ RunTime:0.032216s ]
+[ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `ct_goods` WHERE  `istrade` = 1  AND `on_sale` = 1  AND `userid` = 92 LIMIT 1 [ RunTime:0.031025s ]
+---------------------------------------------------------------
+[ 2022-09-06T03:56:06+08:00 ] 127.0.3.50 GET 127.0.3.50/shop/user/index
+[运行时间:0.272187s] [吞吐率:3.67req/s] [内存消耗:606.23kb] [文件加载:129]
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000012s ]
+[ info ] [ CACHE ] INIT File
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000281s ]
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/thinkphp/lang/zh-cn.php
+[ info ] [ ROUTE ] array (
+  'type' => 'module',
+  'module' => 
+  array (
+    0 => 'shop',
+    1 => 'user',
+    2 => 'index',
+  ),
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'PHPSESSID=q4rf288gjcoefour14ets6m3ue; uid=92; token=95746187-01aa-4417-a92d-9d719319cf36',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'referer' => 'http://127.0.3.50/shop/trade/mydraw/type/2',
+  'sec-fetch-dest' => 'document',
+  'sec-fetch-user' => '?1',
+  'sec-fetch-mode' => 'navigate',
+  'sec-fetch-site' => 'same-origin',
+  'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
+  'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
+  'upgrade-insecure-requests' => '1',
+  'cache-control' => 'no-cache',
+  'pragma' => 'no-cache',
+  'connection' => 'keep-alive',
+  'host' => '127.0.3.50',
+  'content-length' => '',
+  'content-type' => '',
+)
+[ info ] [ PARAM ] array (
+)
+[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000098s ]
+[ info ] [ TOKEN ] INIT Mysql
+[ info ] [ DB ] INIT mysql
+[ info ] [ RUN ] app\shop\controller\User->index[ /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/application/shop/controller/User.php ]
+[ info ] [ VIEW ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/shop/view/user/index.html [ array (
+  0 => 'user',
+  1 => 'site',
+  2 => 'config',
+) ]
+[ info ] [ LOG ] INIT File
+[ sql ] [ DB ] CONNECT:[ UseTime:0.062704s ] mysql:host=47.112.222.163;dbname=world;charset=utf8
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user_token` [ RunTime:0.041070s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user_token` WHERE  `token` = '64ca6c8a925aa5490ad78c39e5fde9f2cf330648' LIMIT 1 [ RunTime:0.039335s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user` [ RunTime:0.041954s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.042361s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.039952s ]
+---------------------------------------------------------------
+[ 2022-09-06T03:56:08+08:00 ] 127.0.3.50 GET 127.0.3.50/shop/index/index.html
+[运行时间:0.671530s] [吞吐率:1.49req/s] [内存消耗:617.05kb] [文件加载:130]
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000015s ]
+[ info ] [ CACHE ] INIT File
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000358s ]
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/thinkphp/lang/zh-cn.php
+[ info ] [ ROUTE ] array (
+  'type' => 'module',
+  'module' => 
+  array (
+    0 => 'shop',
+    1 => 'index',
+    2 => 'index',
+  ),
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'PHPSESSID=q4rf288gjcoefour14ets6m3ue; uid=92; token=95746187-01aa-4417-a92d-9d719319cf36',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'referer' => 'http://127.0.3.50/shop/user/index',
+  'sec-fetch-dest' => 'document',
+  'sec-fetch-user' => '?1',
+  'sec-fetch-mode' => 'navigate',
+  'sec-fetch-site' => 'same-origin',
+  'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
+  'user-agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
+  'upgrade-insecure-requests' => '1',
+  'cache-control' => 'no-cache',
+  'pragma' => 'no-cache',
+  'connection' => 'keep-alive',
+  'host' => '127.0.3.50',
+  'content-length' => '',
+  'content-type' => '',
+)
+[ info ] [ PARAM ] array (
+)
+[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000096s ]
+[ info ] [ TOKEN ] INIT Mysql
+[ info ] [ DB ] INIT mysql
+[ info ] [ RUN ] app\shop\controller\Index->index[ /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/application/shop/controller/Index.php ]
+[ info ] [ VIEW ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/shop/view/index/index.html [ array (
+  0 => 'user',
+  1 => 'site',
+  2 => 'config',
+  3 => 'slideshow',
+  4 => 'cats',
+  5 => 'awards',
+  6 => 'index_order',
+  7 => 'artist',
+  8 => 'title',
+) ]
+[ info ] [ LOG ] INIT File
+[ sql ] [ DB ] CONNECT:[ UseTime:0.071612s ] mysql:host=47.112.222.163;dbname=world;charset=utf8
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user_token` [ RunTime:0.051444s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user_token` WHERE  `token` = '64ca6c8a925aa5490ad78c39e5fde9f2cf330648' LIMIT 1 [ RunTime:0.047325s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user` [ RunTime:0.050950s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.049421s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_studio` [ RunTime:0.051257s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_studio` WHERE  `title` = 'SSC666666' LIMIT 1 [ RunTime:0.047655s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_ads` [ RunTime:0.050253s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_ads` WHERE  `status` = 1  AND `studio` = 'SSC666666' [ RunTime:0.047991s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_article` [ RunTime:0.050841s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_article` WHERE  `catid` = 2  AND `status` = 1 [ RunTime:0.048265s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_goods_cats` [ RunTime:0.050223s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_goods_cats` WHERE  `status` = 1 ORDER BY `id` ASC [ RunTime:0.048455s ]
+---------------------------------------------------------------
+[ 2022-09-06T15:14:12+08:00 ] 127.0.3.50 GET 127.0.3.50/
+[运行时间:0.458917s] [吞吐率:2.18req/s] [内存消耗:604.93kb] [文件加载:131]
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000192s ]
+[ info ] [ CACHE ] INIT File
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002019s ]
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/thinkphp/lang/zh-cn.php
+[ info ] [ ROUTE ] array (
+  'type' => 'module',
+  'module' => 
+  array (
+    0 => '',
+    1 => NULL,
+    2 => NULL,
+  ),
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'PHPSESSID=q4rf288gjcoefour14ets6m3ue; uid=92; token=95746187-01aa-4417-a92d-9d719319cf36',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'sec-fetch-dest' => 'document',
+  'sec-fetch-user' => '?1',
+  'sec-fetch-mode' => 'navigate',
+  'sec-fetch-site' => 'none',
+  'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
+  'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36',
+  'upgrade-insecure-requests' => '1',
+  'sec-ch-ua-platform' => '"macOS"',
+  'sec-ch-ua-mobile' => '?0',
+  'sec-ch-ua' => '"Chromium";v="104", " Not A;Brand";v="99", "Google Chrome";v="104"',
+  'connection' => 'keep-alive',
+  'host' => '127.0.3.50',
+  'content-length' => '',
+  'content-type' => '',
+)
+[ info ] [ PARAM ] array (
+)
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/index/lang/zh-cn.php
+[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000371s ]
+[ info ] [ TOKEN ] INIT Mysql
+[ info ] [ DB ] INIT mysql
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/index/lang/zh-cn/index.php
+[ info ] [ RUN ] app\index\controller\Index->index[ /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/application/index/controller/Index.php ]
+[ info ] [ LOG ] INIT File
+[ sql ] [ DB ] CONNECT:[ UseTime:0.162554s ] mysql:host=47.112.222.163;dbname=world;charset=utf8
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user_token` [ RunTime:0.043444s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user_token` WHERE  `token` = '64ca6c8a925aa5490ad78c39e5fde9f2cf330648' LIMIT 1 [ RunTime:0.049388s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user` [ RunTime:0.042665s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.109001s ]
+---------------------------------------------------------------
+[ 2022-09-06T15:14:13+08:00 ] 127.0.3.50 GET 127.0.3.50/shop/index/index.html
+[运行时间:0.555136s] [吞吐率:1.80req/s] [内存消耗:617.02kb] [文件加载:130]
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000123s ]
+[ info ] [ CACHE ] INIT File
+[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000536s ]
+[ info ] [ LANG ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/thinkphp/lang/zh-cn.php
+[ info ] [ ROUTE ] array (
+  'type' => 'module',
+  'module' => 
+  array (
+    0 => 'shop',
+    1 => 'index',
+    2 => 'index',
+  ),
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'PHPSESSID=q4rf288gjcoefour14ets6m3ue; uid=92; token=95746187-01aa-4417-a92d-9d719319cf36',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'sec-ch-ua-platform' => '"macOS"',
+  'sec-ch-ua-mobile' => '?0',
+  'sec-ch-ua' => '"Chromium";v="104", " Not A;Brand";v="99", "Google Chrome";v="104"',
+  'sec-fetch-dest' => 'document',
+  'sec-fetch-user' => '?1',
+  'sec-fetch-mode' => 'navigate',
+  'sec-fetch-site' => 'none',
+  'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
+  'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36',
+  'upgrade-insecure-requests' => '1',
+  'connection' => 'keep-alive',
+  'host' => '127.0.3.50',
+  'content-length' => '',
+  'content-type' => '',
+)
+[ info ] [ PARAM ] array (
+)
+[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.000240s ]
+[ info ] [ TOKEN ] INIT Mysql
+[ info ] [ DB ] INIT mysql
+[ info ] [ RUN ] app\shop\controller\Index->index[ /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/application/shop/controller/Index.php ]
+[ info ] [ VIEW ] /usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/shop/view/index/index.html [ array (
+  0 => 'user',
+  1 => 'site',
+  2 => 'config',
+  3 => 'slideshow',
+  4 => 'cats',
+  5 => 'awards',
+  6 => 'index_order',
+  7 => 'artist',
+  8 => 'title',
+) ]
+[ info ] [ LOG ] INIT File
+[ sql ] [ DB ] CONNECT:[ UseTime:0.058369s ] mysql:host=47.112.222.163;dbname=world;charset=utf8
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user_token` [ RunTime:0.039785s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user_token` WHERE  `token` = '64ca6c8a925aa5490ad78c39e5fde9f2cf330648' LIMIT 1 [ RunTime:0.036548s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_user` [ RunTime:0.041268s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_user` WHERE  `id` = 92 LIMIT 1 [ RunTime:0.039827s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_studio` [ RunTime:0.043117s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_studio` WHERE  `title` = 'SSC666666' LIMIT 1 [ RunTime:0.043134s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_ads` [ RunTime:0.040055s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_ads` WHERE  `status` = 1  AND `studio` = 'SSC666666' [ RunTime:0.037379s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_article` [ RunTime:0.040503s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_article` WHERE  `catid` = 2  AND `status` = 1 [ RunTime:0.037692s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `ct_goods_cats` [ RunTime:0.042108s ]
+[ sql ] [ SQL ] SELECT * FROM `ct_goods_cats` WHERE  `status` = 1 ORDER BY `id` ASC [ RunTime:0.037547s ]

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 15351 - 0
runtime/log/202209/07.log


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 3844 - 0
runtime/log/202209/15.log


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 20122 - 0
runtime/log/202209/16.log


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 39972 - 0
runtime/log/202209/1662536710-07.log


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 98 - 0
runtime/temp/00fe8c2eec7c6d665c3b9d1fee6eabe9.php


+ 117 - 0
runtime/temp/0945c3352751d264d3523cae2fa234b2.php

@@ -0,0 +1,117 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:112:"/usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/shop/view/trade/yuyuecode.html";i:1655800470;}*/ ?>
+<!doctype html>
+<html class="no-js">
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="description" content="">
+    <meta name="keywords" content="">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <title>我的预约记录</title>
+    <!-- Set render engine for 360 browser -->
+    <meta name="renderer" content="webkit">
+    <!-- No Baidu Siteapp-->
+    <meta http-equiv="Cache-Control" content="no-siteapp" />
+    <!-- Add to homescreen for Chrome on Android -->
+    <meta name="mobile-web-app-capable" content="yes">
+    <!-- Add to homescreen for Safari on iOS -->
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black">
+    <meta name="apple-mobile-web-app-title" content="积分商城" />
+    <!-- Tile icon for Win8 (144x144 + tile color) -->
+    <meta name="msapplication-TileColor" content="#0e90d2">
+
+    <link rel="stylesheet" href="/assets/shop/css/amazeui.css">
+    <link rel="stylesheet" href="/assets/shop/css/app.css">
+    <style type="text/css">
+        .am-list-news-default .am-list .am-list-thumb img {width: 86%;}
+        .bg1{background:#4c4c4c;}
+    </style>
+</head>
+
+<body>
+<!-- Header -->
+<header data-am-widget="header" class="am-header am-header-default">
+    <div class="am-header-left am-header-nav">
+        <a href="javascript:void(0);" onclick="javascript:history.back(-1);return false;"><i class="am-header-icon am-icon-angle-left"></i></a>
+    </div>
+    <h1 class="am-header-title">
+        <a href="#title-link">我的预约记录</a>
+    </h1>
+</header>
+<!-- Content -->
+<div class="wapper" data-html="tabs">
+    <div data-am-widget="tabs" class="am-tabs am-tabs-d2">
+        <div class="am-tabs-bd">
+            <div class="am-list am-padding-xs">
+                <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
+                <div class="am-margin-bottom-xs am-bg-white">
+                    <div class="am-g   am-padding-xs am-text-left  ">
+                        <div class="am-u-sm-6">单号:<?php echo $v['orderNo']; ?></div>
+                        <div class="am-u-sm-6 am-text-right am-text-danger">预约成功</div>
+                    </div>
+                <div class="am-padding-xs am-text-left">
+                    <div class="am-g">
+                        <div class="am-u-sm-3">
+                            <img src="<?php echo $v['goods']['image']; ?>" width="100%" height="68"/>
+                        </div>
+                        <div class="am-u-sm-9 am-padding-left-0">
+                            <p  class="text-line1 am-bold"><?php echo $v['goods']['title']; ?></p>
+                            <p  class="">产品编号:<?php echo $v['goods']['description']; ?></p>
+                            <div>
+                                <span class="am-text-danger">售价:¥<?php echo $v['nums']; ?></span>
+                                <span class="am-fr">×1</span>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="am-g">
+                        <div class="am-u-sm-9">预约时间:<?php echo time_format($v['appoint_time'],'Y-m-d H:i:s'); ?></div>
+                        <div class="am-u-sm-3"><botton class="am-btn am-btn-danger am-round am-text-xs" onclick="tocancel(<?php echo $v['id']; ?>)">取消预约</botton></div>
+                    </div>
+                </div>
+                </div>
+                <?php endforeach; endif; else: echo "" ;endif; ?>
+            </div>
+        </div>
+    </div>
+</div>
+
+
+<!--[if (gte IE 9)|!(IE)]><!-->
+<script src="/assets/index/js/jquery.min.js"></script>
+<!--<![endif]-->
+<!--[if lte IE 8 ]>
+<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
+<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
+<script src="/assets/index/js/amazeui.ie8polyfill.min.js"></script>
+<![endif]-->
+<script src="/assets/index/js/amazeui.min.js"></script>
+<script src="/assets/index/js/amazeui.dialog.js"></script>
+<script src="/assets/index/js/app.js"></script>
+<script src="/assets/libs/layer/layer.js"></script>
+<script type="text/javascript">
+
+    function tocancel(e)
+    {
+        layer.confirm("确认取消此预约?",{
+            btn: ['确认', '取消']
+        }, function () {
+            // 按钮1的事件
+            jQuery.post("<?php echo url('api/trade/tocancel1'); ?>" ,{id:e},function(data) {
+                if(data.code>0)
+                {
+                    layer.msg('操作完成',{time:1000},function(){
+                        location="<?php echo url('shop/index/index'); ?>";
+                    });
+                }else{
+                    layer.msg(data.msg);
+                }
+            });
+        }, function(){
+            // 按钮2的事件
+        });
+    }
+</script>
+</body>
+
+</html>

+ 245 - 0
runtime/temp/0c7628e73da439c1f1db5f0bc7ca250c.php

@@ -0,0 +1,245 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:109:"/usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/shop/view/user/profile.html";i:1663266180;}*/ ?>
+<!doctype html>
+<html class="no-js">
+<head>
+	<meta charset="utf-8">
+	<meta http-equiv="X-UA-Compatible" content="IE=edge">
+	<meta name="description" content="">
+	<meta name="keywords" content="">
+	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+	<title>收款方式</title>
+	<!-- Set render engine for 360 browser -->
+	<meta name="renderer" content="webkit">
+	<link rel="stylesheet" href="/assets/shop/css/amazeui.css">
+	<link rel="stylesheet" href="/assets/shop/css/app.css">
+	<style type="text/css">
+		div[data-html=form] .am-form .am-form-group{
+			margin-bottom: 1rem;
+			border-radius: 10px;
+		}
+		.userIcon{
+			width: 50px;
+			height: 50px;
+			margin: 0 0 0 73%;
+		}
+		.icon-cearma{
+			position: absolute;
+			bottom: 1%;
+			right: 5%;
+			width: 24px;
+		}
+		#up-img-touch{ position: relative;}
+		#up-img-touch1{ position: relative;}
+		#file,#file1{
+			position: absolute;
+			top: 0;
+			width: 100%;
+			height: 100%;
+			opacity: 0;
+			cursor: pointer;
+		}
+	</style>
+</head>
+
+<body class="">
+<!-- Header -->
+<header data-am-widget="header" class="am-header am-header-default">
+	<div class="am-header-left am-header-nav">
+		<a href="javascript:void(0);" onclick="javascript:history.back(-1);return false;"><i class="am-header-icon am-icon-angle-left"></i></a>
+	</div>
+	<h1 class="am-header-title">
+		<a href="#title-link">收款方式</a>
+	</h1>
+</header>
+<!-- Content -->
+<div class="wapper " data-html="form" style="padding-top:49px">
+	<div class="  am-form am-form-horizontal invest-form am-padding-bottom-xs" >
+		<div class="am-link-muted am-padding-xs">USDT收款</div>
+		<div class="am-bg-white">
+			<div class="am-form-group sc-bg">
+				<label class="am-u-sm-3 am-form-label">输入钱包地址</label>
+				<div class="am-u-sm-9">
+					<input type="text" class=" am-text-right" placeholder="<?php echo __('请输入USDT钱包地址'); ?>" name="usdt_address" value="<?php echo $user['usdt_address']; ?>">
+				</div>
+			</div>
+		</div>
+		<!--<div class="am-link-muted am-padding-xs">银行收款</div>
+		<div class="am-bg-white">
+			<div class="am-form-group sc-bg">
+				<label class="am-u-sm-3 am-form-label">输入银行</label>
+				<div class="am-u-sm-9">
+					<input type="text" class=" am-text-right" placeholder="<?php echo __('请输入银行'); ?>" name="bank" value="<?php echo $user['bank']; ?>">
+				</div>
+			</div>
+			<div class="am-form-group sc-bg">
+				<label class="am-u-sm-3 am-form-label">持卡人</label>
+				<div class="am-u-sm-9">
+					<input type="text" class="am-text-right " placeholder="<?php echo __('请输入持卡人姓名'); ?>" name="bank_user_name" value="<?php echo $user['bank_user_name']; ?>">
+				</div>
+			</div>
+			<div class="am-form-group sc-bg" style="margin-bottom:0!important;">
+				<label class="am-u-sm-3 am-form-label">银行卡号</label>
+				<div class="am-u-sm-9">
+					<input type="text" class=" am-text-right" placeholder="<?php echo __('请输入银行卡号'); ?>" name="bank_number" value="<?php echo $user['bank_number']; ?>">
+				</div>
+			</div>
+		</div>-->
+		<!--
+		<div class="am-link-muted am-padding-xs">微信收款</div>
+		<div class="am-bg-white">
+			<div class=" am-form-group sc-bg" style="margin-bottom:0!important;">
+				<label class="am-u-sm-6 am-form-label"><img src="/assets/shop/img/wx.png" width="30"/>微信收款码</label>
+				<div class="am-u-sm-6 am-text-right">
+					<div class=" userIcon "  id="up-img-touch1">
+						<form id="form2" class="am-form am-form-horizontal" method="post" enctype="multipart/form-data">
+							<img src="<?php echo (isset($user['wxprc']) && ($user['wxprc'] !== '')?$user['wxprc']:'/assets/shop/img/upload.png'); ?>" id="img1" width="50" height="50"/>
+							<input type="file" id="file1" name="file" />
+						</form>
+					</div>
+				</div>
+			</div>
+		</div>
+		<div class="am-link-muted am-padding-xs">支付宝收款</div>
+		<div class="am-bg-white">
+			<div class=" am-form-group sc-bg">
+				<label class="am-u-sm-6 am-form-label"><img src="/assets/shop/img/alipay.png" width="30"/>支付宝收款码</label>
+				<div class="am-u-sm-6 am-text-right">
+					<div class=" userIcon"  id="up-img-touch">
+						<form id="form1" class="am-form am-form-horizontal" method="post" enctype="multipart/form-data">
+							<img src="<?php echo (isset($user['wxprc']) && ($user['wxprc'] !== '')?$user['wxprc']:'/assets/shop/img/upload.png'); ?>" id="img" width="50" height="50"/>
+							<input type="file" id="file" name="file" />
+						</form>
+					</div>
+				</div>
+			</div>
+			<div class="am-form-group sc-bg">
+				<label class="am-u-sm-3 am-form-label">支付宝账号</label>
+				<div class="am-u-sm-9">
+					<input type="text" class="am-text-right" placeholder="<?php echo __('请输入支付宝账号'); ?>" name="alipayname" value="<?php echo $user['alipayname']; ?>">
+				</div>
+			</div>
+		</div>
+		-->
+	</div>
+</div>
+<input type="hidden" name="alipayprc" id="alipayprc" value="<?php echo $user['alipayprc']; ?>"/>
+<input type="hidden" name="wxprc" id="wxprc" value="<?php echo $user['wxprc']; ?>"/>
+<div class="am-margin-xl">
+	<button type="button" class="am-btn am-btn-black am-round am-btn-block" id="submit">保存</button>
+</div>
+<script src="/assets/shop/js/jquery.min.js"></script>
+<script src="/assets/shop/js/amazeui.min.js"></script>
+<script src="/assets/libs/layer/layer.js"></script>
+<script>
+    if(0){
+    var file = document.getElementById('file');
+    var image = document.getElementById("img");
+    var file1 = document.getElementById('file1');
+    var image1 = document.getElementById("img1");
+    file.onchange = function() {
+        var fileData = this.files[0];//获取到一个FileList对象中的第一个文件( File 对象),是我们上传的文件
+        var pettern = /^image/;
+        console.info(fileData.type)
+        if (!pettern.test(fileData.type)) {
+            layer.msg("图片格式不正确");
+            return;
+        }
+        var reader = new FileReader();
+        reader.readAsDataURL(fileData);//异步读取文件内容,结果用data:url的字符串形式表示
+        /*当读取操作成功完成时调用*/
+        reader.onload = function(e) {
+            console.log(e); //查看对象
+            image.setAttribute("src", this.result)
+        }
+        var formData = new FormData($( "#form1" )[0]);
+        $.ajax({
+            //几个参数需要注意一下
+            type: "POST",//方法类型
+            dataType: "json",//预期服务器返回的数据类型
+            url: "<?php echo url('ajax/upload'); ?>" ,
+            data: formData,
+            contentType: false, //不设置内容类型
+            processData: false, //不处理数据
+            success: function (result) {
+                if(result.code>0)
+                {
+                    $('#img').attr('src',result.data.url);
+                    $('#alipayprc').val(result.data.url);
+                }else{
+                    layer.msg(result.msg);
+                }
+            },
+            error : function() {
+                layer.msg("网络异常!");
+            }
+        });
+    }
+    file1.onchange = function() {
+        var fileData = this.files[0];//获取到一个FileList对象中的第一个文件( File 对象),是我们上传的文件
+        var pettern = /^image/;
+        console.info(fileData.type)
+        if (!pettern.test(fileData.type)) {
+            layer.msg("图片格式不正确");
+            return;
+        }
+        var reader = new FileReader();
+        reader.readAsDataURL(fileData);//异步读取文件内容,结果用data:url的字符串形式表示
+        /*当读取操作成功完成时调用*/
+        reader.onload = function(e) {
+            console.log(e); //查看对象
+            image1.setAttribute("src", this.result)
+        }
+        var formData = new FormData($( "#form2" )[0]);
+        $.ajax({
+            //几个参数需要注意一下
+            type: "POST",//方法类型
+            dataType: "json",//预期服务器返回的数据类型
+            url: "<?php echo url('ajax/upload'); ?>" ,
+            data: formData,
+            contentType: false, //不设置内容类型
+            processData: false, //不处理数据
+            success: function (result) {
+                if(result.code>0)
+                {
+                    $('#img1').attr('src',result.data.url);
+                    $('#wxprc').val(result.data.url);
+                }else{
+                    layer.msg(result.msg);
+                }
+            },
+            error : function() {
+                layer.msg("网络异常!");
+            }
+        });
+    }
+    
+    }
+    $('#submit').click(function(){
+        var params={};
+		//params.alipayname=$('input[name=alipayname]').val();
+		//params.alipayprc=$('#alipayprc').val();
+		//params. wxprc=$('#wxprc').val();
+		
+		params.usdt_address=$('input[name=usdt_address]').val();
+		//params.alipayname='';
+		//params.alipayprc='';
+		//params.wxprc='';
+		//params.bank=$('input[name=bank]').val();
+		//params.bank_number=$('input[name=bank_number]').val();
+		//params.bank_user_name=$('input[name=bank_user_name]').val();
+        params.verify=$('#verify').val();
+		jQuery.post("<?php echo url('api/user/profile'); ?>" ,params,function(data) {
+            if(data.code>0)
+            {
+                layer.msg(data.msg,{time:500},function(){
+                    location="index.html";
+                });
+            }else{
+                layer.msg(data.msg);
+            }
+        });
+	});
+
+</script>
+</body>
+</html>

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 98 - 0
runtime/temp/13773f373a03fc6992aece0172c2397d.php


+ 286 - 0
runtime/temp/1668796b27bfc4a38b2b5275a6d78308.php

@@ -0,0 +1,286 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:112:"/usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/shop/view/trade/tradelist.html";i:1651913675;}*/ ?>
+<!doctype html>
+<html class="no-js">
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="description" content="">
+    <meta name="keywords" content="">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <title>我的订单</title>
+    <!-- Set render engine for 360 browser -->
+    <meta name="renderer" content="webkit">
+    <!-- No Baidu Siteapp-->
+    <meta http-equiv="Cache-Control" content="no-siteapp" />
+    <!-- Add to homescreen for Chrome on Android -->
+    <meta name="mobile-web-app-capable" content="yes">
+    <!-- Add to homescreen for Safari on iOS -->
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black">
+    <meta name="apple-mobile-web-app-title" content="积分商城" />
+    <!-- Tile icon for Win8 (144x144 + tile color) -->
+    <meta name="msapplication-TileColor" content="#0e90d2">
+
+    <link rel="stylesheet" href="/assets/shop/css/amazeui.css">
+    <link rel="stylesheet" href="/assets/shop/css/app.css">
+    <style type="text/css">
+        .am-list-news-default .am-list .am-list-thumb img {width: 86%;}
+    </style>
+</head>
+
+<body>
+<!-- Header -->
+<header data-am-widget="header" class="am-header am-header-default">
+    <h1 class="am-header-title">
+        <a href="#title-link">我的订单</a>
+    </h1>
+</header>
+<!-- Content -->
+<div class="wapper" data-html="tabs">
+    <div data-am-widget="tabs" class="am-tabs am-tabs-d2">
+        <ul class="am-tabs-nav am-cf">
+            <li class="am-active"><a href="[data-tab-panel-0]" data-href="tradelist">全部</a></li>
+            <li class=""><a href="[data-tab-panel-1]" data-href="trade1">待付款</a></li>
+            <li class=""><a href="[data-tab-panel-2]" data-href="trade2">待收款</a></li>
+            <li class=""><a href="[data-tab-panel-3]" data-href="trade3">待上架</a></li>
+            <li class=""><a href="[data-tab-panel-4]" data-href="trade4">已出售</a></li>
+            <li class=""><a href="[data-tab-panel-5]" data-href="trade5">异常订单</a></li>
+        </ul>
+        <div class="am-tabs-bd">
+            <div class="am-list am-padding-xs">
+
+            </div>
+        </div>
+    </div>
+</div>
+<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default" id="">
+    <ul class="am-navbar-nav am-cf am-avg-sm-3">
+        <li class="">
+            <a href="<?php echo url('shop/index/index'); ?>">
+                <span class="am-icon-home"></span>
+                <span class="am-navbar-label">首页</span>
+            </a>
+        </li>
+        <li class="am-active">
+            <a href="<?php echo url('shop/trade/tradelist'); ?>">
+                <span class="am-icon-file-text-o"></span>
+                <span class="am-navbar-label">全部订单</span>
+            </a>
+        </li>
+        <li class="">
+            <a href="<?php echo url('shop/user/bonuspage'); ?>">
+                <span class="am-icon-anchor"></span>
+                <span class="am-navbar-label">分销中心</span>
+            </a>
+        </li>
+        <li>
+            <a href="<?php echo url('shop/user/index'); ?>">
+                <span class="am-icon-user"></span>
+                <span class="am-navbar-label">个人中心</span>
+            </a>
+        </li>
+    </ul>
+</div>
+
+<!--[if (gte IE 9)|!(IE)]><!-->
+<script src="/assets/index/js/jquery.min.js"></script>
+<!--<![endif]-->
+<!--[if lte IE 8 ]>
+<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
+<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
+<script src="/assets/index/js/amazeui.ie8polyfill.min.js"></script>
+<![endif]-->
+<script src="/assets/index/js/amazeui.min.js"></script>
+<script src="/assets/index/js/amazeui.dialog.js"></script>
+<script src="/assets/index/js/app.js"></script>
+<script src="/assets/libs/layer/layer.js"></script>
+<script type="text/javascript">
+    $('.am-tabs-nav li').click(function(){
+        window.location=$(this).find('a').attr('data-href');
+    });
+    var pag = 1, page;  //p当前页,page总页数
+    getList();
+    function getList(){
+        jQuery.post("<?php echo url('api/trade/gettradelist'); ?>" ,{p:pag},function(data) {
+            console.log(data.data);
+            if(data.data != null && data.data.length != 0){
+                page=data.total;
+                var json=data.data;
+                for(var i = 0; i < json.length; i++){
+                    var btn='';
+                    var cfirm='';
+                     var newprice='';
+                    if(json[i].status == 4 || (json[i].status ==3 && json[i].issell==2 ))
+                    {
+                        cfirm= '<div class="am-g  am-padding-bottom-xs am-padding-top-xs  ubb">' +
+                                    '<div class="am-u-sm-8">确认时间:'+json[i].confirm_time1+'</div>'+
+                                    '<div class="am-u-sm-4 am-padding-left-0 am-text-right am-text-danger">上架费¥'+json[i].fee+'</div>'+
+                                '</div>';
+                         newprice=json[i].endnums;        
+                    }else{
+                        newprice=json[i].nums
+                    }
+                    if(json[i].flag == 2 && json[i].status == 1)
+                    {
+                        btn='<span><input type="button" class="am-btn am-btn-danger am-btn-xs" value="支付" onclick="topay('+json[i].id+')"></span>&nbsp;';
+                    }else if(json[i].flag == 1 && json[i].status == 2)
+                    {
+                        btn='<span><input type="button" class="am-btn am-btn-danger am-btn-xs" value="确认订单" onclick="confirmorder('+json[i].id+')"></span>&nbsp;'+
+                            '<span><input type="button" class="am-btn am-btn-success am-btn-xs" value="申诉" onclick="appeal('+json[i].id+')"></span>&nbsp;';
+                    }else if(json[i].flag == 1 && json[i].status == -1)
+                    {
+                        btn='<span><input type="button" class="am-btn am-btn-danger am-btn-xs" value="取消申诉" onclick="tocancelappeal('+json[i].id+')"></span>&nbsp;';
+                    }else if(json[i].flag == 2 && json[i].status == 3 && json[i].issell == 0)
+                    {
+                        btn='<span><input type="button" class="am-btn am-btn-danger am-btn-xs" value="代售" onclick="tosell('+json[i].id+')"></span>&nbsp;'+
+                           '<span><input type="button" class="am-btn am-btn-success am-btn-xs" value="发货到家" onclick="toorder('+json[i].id+')"></span>&nbsp;';
+                    }
+
+                    var _ =
+                        '<div class="am-margin-bottom-xs am-bg-white">'+
+                            '<div class="am-g   am-padding-xs am-text-left ubb">'+
+                                '<div class="am-u-sm-8">单号:'+json[i].orderNo+'</div>'+
+                                '<div class="am-u-sm-4 am-text-right am-text-danger">'+json[i].status_desc+'</div>'+
+                            '</div>'+
+                            '<div class="am-padding-xs am-text-left">'+
+                                '<div class="am-g ubb">'+
+                                    '<div class="am-u-sm-3">'+
+                                         '<img src="'+json[i].goods.image+'" width="100%" height="68"/>'+
+                                    '</div>'+
+                                    '<div class="am-u-sm-9 am-padding-left-0">'+
+                                        '<p  class="text-line1 am-bold">'+json[i].goods.title+'【编号'+json[i].goods.description+'】</p>'+
+                                        
+                                        '<p  class=""><span class="am-btn-warning">卖家</span>'+json[i].selluser+'</p>'+
+                                        '<p  class=""><span class="am-btn-success">买家</span>'+json[i].buyuser+'</p>'+
+                                   '</div>'+
+                                '</div>'+
+                                '<div class="am-g am-padding-bottom-xs am-padding-top-xs ubb">' +
+                                    '<div class="am-u-sm-8 am-padding-right-0">买入单时间:'+json[i].ctime1+'</div>'+
+                                    '<div class="am-u-sm-4 am-padding-left-0 am-text-right am-text-danger">价值¥'+newprice+'</div>'+
+                                '</div>'+
+                               cfirm+
+                                '<div class="am-padding-top-sm am-text-right">'+
+                                     btn+
+                                     '<span><input type="button" class="am-btn am-btn-default am-btn-xs" value="订单详情" onclick="showtrade('+json[i].id+')"></span>'+
+                                '</div>'+
+                            '</div>'+
+                        '</div>';
+                    $('.am-list').append(_);
+                }
+            }else{
+                $('.am-list').html('<li class="am-padding-top-xs am-padding-bottom-xs am-text-center am-link-muted"><?php echo __("暂无数据"); ?></li>')
+            }
+        });
+    }
+    //滚动分页
+    window.onscroll = function(){
+        var top = document.body.scrollTop || document.documentElement.scrollTop;
+        var height = document.body.scrollHeight || document.documentElement.scrollHeight;
+        if((top + window.innerHeight) >= height-49){
+            pag = pag + 1;
+            if(pag > page){
+                pag = page;
+                $('.tips-text').show();
+                return;
+            }
+            //从后台获取列表数据
+            getList();
+        }
+    }
+    function showtrade(e)
+    {
+        location="/shop/trade/showtrade/id/"+e;
+    }
+    function topay(e)
+    {
+        location="/shop/trade/topay/id/"+e;
+    }
+   
+    function confirmorder(e)
+    {
+        jQuery.post("<?php echo url('api/trade/toconfirm'); ?>" ,{id:e},function(data) {
+            if(data.code>0)
+            {
+                layer.msg('确认完成',{time:1000},function(){
+                    location=location;
+                });
+            }else{
+                layer.msg(data.msg);
+            }
+        });
+    }
+    function appeal(e)
+    {
+        location="/shop/trade/appeal/id/"+e;
+    }
+    function tocancelappeal(e)
+    {
+        layer.confirm("确认取消此交易的申诉?",{
+            btn: ['确认', '取消']
+        }, function () {
+            // 按钮1的事件
+            jQuery.post("<?php echo url('api/trade/tocancelappeal'); ?>" ,{id:e},function(data) {
+                if(data.code>0)
+                {
+                    layer.msg('操作完成',{time:1000},function(){
+                        location=location;
+                    });
+                }else{
+                    layer.msg(data.msg);
+                }
+            });
+        }, function(){
+            // 按钮2的事件
+        });
+    }
+    function tosell(e)
+    {
+        //询问框
+        layer.confirm('确认要出售此商品?', {
+            title:'提示',
+            btn: ['确认','取消'] //按钮
+        }, function(){
+            jQuery.post("<?php echo url('api/trade/toupdatetrade'); ?>" ,{id:e,type:1},function(data) {
+                if(data.code>0)
+                {
+                    layer.msg('操作完成',{time:1000},function(){
+                        location=location;
+                    });
+                }else{
+                    layer.msg(data.msg);
+                }
+            });
+        }, function(){
+
+        });
+    }
+    function toorder(e,t)
+    {
+        //询问框
+        layer.confirm('确认要将此都订单发货?', {
+            title:'提示',
+            btn: ['确认','取消'] //按钮
+        }, function(){
+            jQuery.post("<?php echo url('api/trade/toupdatetrade'); ?>" ,{id:e,type:2,isadd:t},function(data) {
+                if(data.code>0)
+                {
+                    layer.msg('操作完成',{time:1000},function(){
+                        location=location;
+                    });
+                }else{
+                    layer.msg(data.msg);
+                }
+            });
+        }, function(){
+
+        });
+    }
+    function tochange(e)
+    {
+        location="/shop/trade/changestudio/goodsid/"+e;
+    }
+
+</script>
+</body>
+
+</html>

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 92 - 0
runtime/temp/181c6882f6a85ab67444d8a86da517c4.php


+ 154 - 0
runtime/temp/1a46c9c568ee9cad40c729406fcaacb3.php

@@ -0,0 +1,154 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:109:"/usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/shop/view/trade/orders.html";i:1650939947;}*/ ?>
+<!doctype html>
+<html class="no-js">
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="description" content="">
+    <meta name="keywords" content="">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <title>订单管理</title>
+    <!-- Set render engine for 360 browser -->
+    <meta name="renderer" content="webkit">
+    <!-- No Baidu Siteapp-->
+    <meta http-equiv="Cache-Control" content="no-siteapp" />
+    <!-- Add to homescreen for Chrome on Android -->
+    <meta name="mobile-web-app-capable" content="yes">
+    <!-- Add to homescreen for Safari on iOS -->
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black">
+    <meta name="apple-mobile-web-app-title" content="积分商城" />
+    <!-- Tile icon for Win8 (144x144 + tile color) -->
+    <meta name="msapplication-TileColor" content="#0e90d2">
+
+    <link rel="stylesheet" href="/assets/shop/css/amazeui.css">
+    <link rel="stylesheet" href="/assets/shop/css/app.css">
+
+    <style type="text/css">
+    </style>
+</head>
+
+<body>
+<!-- Header -->
+<header data-am-widget="header" class="am-header am-header-default">
+    <div class="am-header-left am-header-nav">
+        <a href="/shop/user/myhost" ><i class="am-header-icon am-icon-angle-left"></i></a>
+    </div>
+    <h1 class="am-header-title">
+        <a href="#title-link">订单管理</a>
+    </h1>
+</header>
+<!-- Content -->
+<div class="wapper" data-html="tabs">
+    <div data-am-widget="tabs" class="am-tabs am-tabs-d2">
+        <div class="am-tabs-bd">
+            <div class="am-list am-padding-xs">
+
+            </div>
+        </div>
+    </div>
+</div>
+
+<!--[if (gte IE 9)|!(IE)]><!-->
+<script src="/assets/index/js/jquery.min.js"></script>
+<!--<![endif]-->
+<!--[if lte IE 8 ]>
+<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
+<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
+<script src="/assets/index/js/amazeui.ie8polyfill.min.js"></script>
+<![endif]-->
+<script src="/assets/index/js/amazeui.min.js"></script>
+<script src="/assets/index/js/amazeui.dialog.js"></script>
+<script src="/assets/index/js/app.js"></script>
+<script src="/assets/libs/layer/layer.js"></script>
+<script type="text/javascript">
+   
+  
+    var pag = 1, page;  //p当前页,page总页数
+    getList();
+    function getList(){
+        jQuery.post("<?php echo url('api/trade/getorders'); ?>" ,{p:pag},function(data) {
+            console.log(data.data);
+            if(data.data != null && data.data.length != 0){
+                page=data.total;
+                var json=data.data;
+                for(var i = 0; i < json.length; i++){
+                    var btn='';
+                    if(json[i].status == 1 || json[i].status == 2)
+                    {
+                        btn='<span><input type="button" class="am-btn am-btn-danger am-btn-xs" value="修改订单" onclick="toeditorder('+json[i].id+')"></span>&nbsp;'+
+                            '<span><input type="button" class="am-btn am-btn-success am-btn-xs" value="取消订单" onclick="tocancel('+json[i].id+')"></span>&nbsp;';
+                    }
+                    var _ =
+                        '<div class="am-margin-bottom-sm am-bg-white">'+
+                            '<div class="am-g  ubb am-padding-xs am-text-left">'+
+                                '<div class="am-u-sm-8">单号:'+json[i].orderNo+'</div>'+
+                                '<div class="am-u-sm-4 am-text-right am-text-danger">'+json[i].status_desc+'</div>'+
+                            '</div>'+
+                            '<div class="am-g ubb am-padding-top-sm am-padding-bottom-sm">'+
+                                '<div class="am-u-sm-3" style="height:110px;">'+
+                                     '<img src="'+json[i].goods.image+'" width="100%" height="68"/>'+
+                                '</div>'+
+                                '<div class="am-u-sm-9">'+
+                                    '<div class=" text-line1 am-bold">'+json[i].goods.title+'</div>'+
+                                    '<div class=""><span class="am-btn-warning">卖方</span>:'+json[i].selluser+'</div>'+
+                                    '<div class=""><span class="am-btn-success">买方</span>:'+json[i].buyuser+'</div>'+
+                                    '<div class="">下单时间:'+json[i].ctime1+'</div>'+
+                                    '<div class="">更新时间:'+json[i].pay_time1+'</div>'+
+                                '</div>'+
+                            '</div>'+
+                            '<div class="am-text-right">'+
+                                '<div class="am-padding-sm ubb">商品售价:'+json[i].nums+'</div>'+
+                                '<div class="am-padding-sm">'+btn+'</div>'+
+                            '</div>'+
+                        '</div>';
+                    $('.am-list').append(_);
+                }
+            }else{
+                $('.am-list').html('<li class="am-padding-top-xs am-padding-bottom-xs am-text-center am-link-muted">暂无数据(仅供查询近5日订单)</li>')
+            }
+        });
+    }
+    //滚动分页
+    window.onscroll = function(){
+        var top = document.body.scrollTop || document.documentElement.scrollTop;
+        var height = document.body.scrollHeight || document.documentElement.scrollHeight;
+        if((top + window.innerHeight) >= height-49){
+            pag = pag + 1;
+            if(pag > page){
+                pag = page;
+                $('.tips-text').show();
+                return;
+            }
+            //从后台获取列表数据
+            getList();
+        }
+    }
+    function tocancel(e)
+    {
+        layer.confirm("确认取消此交易的支付?",{
+            btn: ['确认', '取消']
+        }, function () {
+            // 按钮1的事件
+            jQuery.post("<?php echo url('api/trade/tocancel'); ?>" ,{id:e},function(data) {
+                if(data.code>0)
+                {
+                    layer.msg('操作完成',{time:1000},function(){
+                        location=location;
+                    });
+                }else{
+                    layer.msg(data.msg);
+                }
+            });
+        }, function(){
+            // 按钮2的事件
+        });
+    }
+    function toeditorder(id)
+    {
+        location="/shop/trade/editorder/id/"+id;
+    }
+</script>
+</body>
+
+</html>

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 171 - 0
runtime/temp/1ee93f251cc4e2a94ba830051286a127.php


+ 0 - 0
runtime/temp/29d0cedecb19fb55dd3729c968b14e62.php


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio