CRMEB论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 114|回复: 12

[已回复] 发布小程序提示 undefined method OrderBehavior::run()

[复制链接]

1

主题

11

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
发表于 2019-9-4 15:18:19 | 显示全部楼层 |阅读模式
小程序更换自己的域名一直提示致命错误: Call to undefined method app\core\behavior\OrderBehavior::run()
这个要怎么处理?

4.png

1

主题

11

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
 楼主| 发表于 2019-9-4 15:32:59 | 显示全部楼层
同此问题:小程序无法正常显示
http://bbs.crmeb.net/forum.php?m ... 93&fromuid=4596
回复

使用道具 举报

4

主题

18

帖子

303

积分

CRMEB官方

Rank: 8Rank: 8

积分
303
发表于 2019-9-4 15:40:33 | 显示全部楼层
你是用的哪个版本?
回复

使用道具 举报

1

主题

11

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
 楼主| 发表于 2019-9-4 15:46:37 | 显示全部楼层
muzidao 发表于 2019-9-4 15:40
你是用的哪个版本?

2.6, 用3.0的问题太多
回复

使用道具 举报

4

主题

18

帖子

303

积分

CRMEB官方

Rank: 8Rank: 8

积分
303
发表于 2019-9-4 16:15:23 | 显示全部楼层
xiaocong 发表于 2019-9-4 15:46
2.6, 用3.0的问题太多

你把链接发一下
回复

使用道具 举报

1

主题

11

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
 楼主| 发表于 2019-9-4 16:18:08 | 显示全部楼层
回复

使用道具 举报

4

主题

18

帖子

303

积分

CRMEB官方

Rank: 8Rank: 8

积分
303
发表于 2019-9-4 16:19:50 | 显示全部楼层
xiaocong 发表于 2019-9-4 16:18
https://gitee.com/ZhongBangKeJi/CRMEB/releases

2.6.3

发一下报错接口的链接
回复

使用道具 举报

1

主题

11

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
 楼主| 发表于 2019-9-4 16:33:15 | 显示全部楼层
muzidao 发表于 2019-9-4 16:19
发一下报错接口的链接

https://web.youwangtong.com/ebapi/public_api/get_my_naviga.html
https://web.youwangtong.com/ebapi/public_api/index.html
https://web.youwangtong.com/ebapi/public_api/get_logo_url.html


  1. [0] ThrowableError in Hook.php line 137
  2. 致命错误: Call to undefined method app\core\behavior\OrderBehavior::run()
  3.             $class  = $class . '->' . $method;
  4.         } elseif (is_object($class)) {
  5.             $result = $class->$method($params, $extra);
  6.             $class  = get_class($class);
  7.         } elseif (strpos($class, '::')) {
  8.             $result = call_user_func_array($class, [ & $params, $extra]);
  9.         } else {
  10.             $obj    = new $class();
  11.             $method = ($tag && is_callable([$obj, $method])) ? $method : 'run';
  12.             $result = $obj->$method($params, $extra);
  13.         }

  14.         if (App::$debug) {
  15.             Debug::remark('behavior_end', 'time');
  16.             Log::record('[ BEHAVIOR ] Run ' . $class . ' @' . $tag . ' [ RunTime:' . Debug::getRangeTime('behavior_start', 'behavior_end') . 's ]', 'info');
  17.         }

  18.         return $result;
  19.     }
  20. Call Stack
  21. in Hook.php line 137
  22. at Hook::exec('app\core\behavior\Or...', 'order_unpaid_cancel') in Basic.php line 75
  23. at Basic->runApimiddlewareGroups() in Basic.php line 34
  24. at Basic->_initialize() in AuthController.php line 13
  25. at AuthController->_initialize() in Controller.php line 59
  26. at Controller->__construct(object(Request))
  27. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  28. at App::invokeClass('app\ebapi\controller...') in Loader.php line 479
  29. at Loader::controller('public_api', 'controller', false, 'Error') in App.php line 580
  30. at App::module(['ebapi', 'public_api', 'get_my_naviga'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  31. at App::exec(['type' => 'module', 'module' => ['ebapi', 'public_api', 'get_my_naviga']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  32. at App::run() in start.php line 19
  33. at require('/www/wwwroot/CRMEB/t...') in index.php line 31
  34. Environment Variables
  35. GET Dataempty
  36. POST Dataempty
  37. Filesempty
  38. Cookiesempty
  39. Sessionempty
  40. Server/Request Data
  41. USER www
  42. HOME /home/www
  43. HTTP_ACCEPT_ENCODING gzip, deflate, br
  44. HTTP_REFERER https://servicewechat.com/wxa0f7c080cb444031/devtools/page-frame.html
  45. HTTP_ACCEPT */*
  46. HTTP_CONTENT_TYPE application/json
  47. HTTP_TOKEN
  48. HTTP_USER_AGENT Mozilla/5.0 (iPhone; CPU iPhone OS 10_2 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Mobile/14C92 Safari/601.1 wechatdevtools/1.02.1904090 MicroMessenger/6.7.3 Language/zh_CN webview/
  49. HTTP_CACHE_CONTROL no-cache
  50. HTTP_PRAGMA no-cache
  51. HTTP_CONNECTION keep-alive
  52. HTTP_HOST web.youwangtong.com
  53. PATH_INFO /ebapi/public_api/get_my_naviga.html
  54. REDIRECT_STATUS 200
  55. SERVER_NAME web.youwangtong.com
  56. SERVER_PORT 443
  57. SERVER_ADDR 172.18.103.191
  58. REMOTE_PORT 57848
  59. REMOTE_ADDR 61.144.185.219
  60. SERVER_SOFTWARE nginx/1.16.0
  61. GATEWAY_INTERFACE CGI/1.1
  62. HTTPS on
  63. REQUEST_SCHEME https
  64. SERVER_PROTOCOL HTTP/1.1
  65. DOCUMENT_ROOT /www/wwwroot/CRMEB
  66. DOCUMENT_URI /index.php
  67. REQUEST_URI /ebapi/public_api/get_my_naviga.html
  68. SCRIPT_NAME /index.php
  69. CONTENT_LENGTH
  70. CONTENT_TYPE application/json
  71. REQUEST_METHOD GET
  72. QUERY_STRING s=/ebapi/public_api/get_my_naviga.html
  73. SCRIPT_FILENAME /www/wwwroot/CRMEB/index.php
  74. FCGI_ROLE RESPONDER
  75. PHP_SELF /index.php
  76. REQUEST_TIME_FLOAT 1567582468.2982
  77. REQUEST_TIME 1567582468
  78. Environment Variablesempty
  79. ThinkPHP Constants
  80. APP_PATH /www/wwwroot/CRMEB/application/
  81. PUBILC_PATH /public/
  82. UPLOAD_PATH public/uploads
  83. THINK_VERSION 5.0.24
  84. THINK_START_TIME 1567582468.2987
  85. THINK_START_MEM 421096
  86. EXT .php
  87. DS /
  88. THINK_PATH /www/wwwroot/CRMEB/thinkphp/
  89. LIB_PATH /www/wwwroot/CRMEB/thinkphp/library/
  90. CORE_PATH /www/wwwroot/CRMEB/thinkphp/library/think/
  91. TRAIT_PATH /www/wwwroot/CRMEB/thinkphp/library/traits/
  92. ROOT_PATH /www/wwwroot/CRMEB/
  93. EXTEND_PATH /www/wwwroot/CRMEB/extend/
  94. VENDOR_PATH /www/wwwroot/CRMEB/vendor/
  95. RUNTIME_PATH /www/wwwroot/CRMEB/runtime/
  96. LOG_PATH /www/wwwroot/CRMEB/runtime/log/
  97. CACHE_PATH /www/wwwroot/CRMEB/runtime/cache/
  98. TEMP_PATH /www/wwwroot/CRMEB/runtime/temp/
  99. CONF_PATH /www/wwwroot/CRMEB/application/
  100. CONF_EXT .php
  101. ENV_PREFIX PHP_
  102. IS_CLI false
  103. IS_WIN false
复制代码

回复

使用道具 举报

4

主题

18

帖子

303

积分

CRMEB官方

Rank: 8Rank: 8

积分
303
发表于 2019-9-4 17:50:04 | 显示全部楼层
xiaocong 发表于 2019-9-4 16:33
https://web.youwangtong.com/ebapi/public_api/get_my_naviga.html
https://web.youwangtong.com/ebapi/ ...

最新的2.6包重新下载一下,9月4号更新的
回复

使用道具 举报

1

主题

11

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
 楼主| 发表于 2019-9-5 09:08:06 | 显示全部楼层
muzidao 发表于 2019-9-4 17:50
最新的2.6包重新下载一下,9月4号更新的

之前的报错没有了, 现在又出现了定义数组索引: brokerage_price
链接:/ebapi/user_api/my.html

  1. [8] ErrorException in UserApi.php line 126
  2. 未定义数组索引: brokerage_price
  3.     public function my(){
  4.         $this->userInfo['couponCount'] = StoreCouponUser::getUserValidCouponCount($this->userInfo['uid']);
  5.         $this->userInfo['like'] = StoreProductRelation::getUserIdCollect($this->userInfo['uid']);;
  6.         $this->userInfo['orderStatusNum'] = StoreOrder::getOrderStatusNum($this->userInfo['uid']);
  7.         $this->userInfo['notice'] = UserNotice::getNotice($this->userInfo['uid']);
  8.         $this->userInfo['brokerage'] = UserBill::getBrokerage($this->uid);//获取总佣金
  9.         $this->userInfo['recharge'] = UserBill::getRecharge($this->uid);//累计充值
  10.         $this->userInfo['orderStatusSum'] = StoreOrder::getOrderStatusSum($this->uid);//累计消费
  11.         $this->userInfo['extractTotalPrice'] = UserExtract::userExtractTotalPrice($this->uid);//累计提现
  12.         $this->userInfo['extractPrice'] = $this->userInfo['brokerage_price'];//可提现
  13.         $this->userInfo['statu'] = (int)SystemConfigService::get('store_brokerage_statu');
  14.         $vipId = UserLevel::getUserLevel($this->uid);
  15.         $this->userInfo['vip']=$vipId !==false ? true : false;
  16.         if($this->userInfo['vip']){
  17.             $this->userInfo['vip_id'] = $vipId;
  18.             $this->userInfo['vip_icon'] = UserLevel::getUserLevelInfo($vipId,'icon');
  19.             $this->userInfo['vip_name'] = UserLevel::getUserLevelInfo($vipId,'name');
  20.         }
  21.         if(!SystemConfigService::get('vip_open')) $this->userInfo['vip']=false;
  22. Call Stack
  23. in UserApi.php line 126
  24. at Error::appError(8, 'Undefined index: bro...', 'E:\wamp\www\crweb\ap...', 126, []) in UserApi.php line 126
  25. at UserApi->my()
  26. at ReflectionMethod->invokeArgs(object(UserApi), []) in App.php line 343
  27. at App::invokeMethod([object(UserApi), 'my'], []) in App.php line 611
  28. at App::module(['ebapi', 'user_api', 'my'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  29. at App::exec(['type' => 'module', 'module' => ['ebapi', 'user_api', 'my']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  30. at App::run() in start.php line 19
  31. at require('E:\wamp\www\crweb\th...') in index.php line 31
  32. Environment Variables
  33. GET Dataempty
  34. POST Dataempty
  35. Filesempty
  36. Cookiesempty
  37. Sessionempty
  38. Server/Request Data
  39. REDIRECT_STATUS 200
  40. HTTP_HOST crweb.test
  41. HTTP_CONNECTION keep-alive
  42. HTTP_PRAGMA no-cache
  43. HTTP_CACHE_CONTROL no-cache
  44. HTTP_SEC_FETCH_DEST empty
  45. HTTP_SEC_FETCH_USER ?F
  46. HTTP_SEC_FETCH_SITE cross-site
  47. HTTP_USER_AGENT Mozilla/5.0 (iPhone; CPU iPhone OS 10_2 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Mobile/14C92 Safari/601.1 wechatdevtools/1.02.1907300 MicroMessenger/6.7.3 Language/zh_CN webview/
  48. HTTP_TOKEN 96fdec25f79da6cf12df23c3360c1ae789603e9dc280fd35f9d272d7ac365cb40f5f637bba938d989052e6ddf9c99c3641693d00021a8e780f0cf4b340c9ebb8af8209f0713284c753b9513900d7311d5e26587a325f0c9532171b9075176f7e
  49. CONTENT_TYPE application/json
  50. HTTP_ACCEPT */*
  51. HTTP_REFERER https://servicewechat.com/wxa0f7c080cb444031/devtools/page-frame.html
  52. HTTP_ACCEPT_ENCODING gzip, deflate
  53. PATH E:\python37\Scripts\;E:\python37\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;F:\软件\svn\bin;E:\wamp\bin\mysql\mysql5.7.21\bin;F:\Software\Git\bin;F:\Software\Git\usr\bin;C:\ProgramData\ComposerSetup\bin;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;F:\Software\tortoiseGit\bin;E:\Yarn\bin\;E:\redis;E:\nodejs\;E:\wamp\bin\php\php7.2.4;F:\Software\sqlite;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
  54. SystemRoot C:\WINDOWS
  55. COMSPEC C:\WINDOWS\system32\cmd.exe
  56. PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
  57. WINDIR C:\WINDOWS
  58. SERVER_SIGNATURE <address>Apache/2.4.33 (Win32) PHP/7.2.4 Server at crweb.test Port 80</address>
  59. SERVER_SOFTWARE Apache/2.4.33 (Win32) PHP/7.2.4
  60. SERVER_NAME crweb.test
  61. SERVER_ADDR 127.0.0.1
  62. SERVER_PORT 80
  63. REMOTE_ADDR 127.0.0.1
  64. DOCUMENT_ROOT E:/wamp/www/crweb
  65. REQUEST_SCHEME http
  66. CONTEXT_PREFIX
  67. CONTEXT_DOCUMENT_ROOT E:/wamp/www/crweb
  68. SERVER_ADMIN wampserver@wampserver.invalid
  69. SCRIPT_FILENAME E:/wamp/www/crweb/index.php
  70. REMOTE_PORT 53786
  71. REDIRECT_URL /ebapi/user_api/my.html
  72. GATEWAY_INTERFACE CGI/1.1
  73. SERVER_PROTOCOL HTTP/1.1
  74. REQUEST_METHOD GET
  75. QUERY_STRING
  76. REQUEST_URI /ebapi/user_api/my.html
  77. SCRIPT_NAME /index.php
  78. PATH_INFO /ebapi/user_api/my.html
  79. PATH_TRANSLATED redirect:\index.php\ebapi\user_api\my.html\user_api\my.html
  80. PHP_SELF /index.php/ebapi/user_api/my.html
  81. REQUEST_TIME_FLOAT 1567645599.153
  82. REQUEST_TIME 1567645599
  83. Environment Variablesempty
  84. ThinkPHP Constants
  85. APP_PATH E:\wamp\www\crweb/application/
  86. PUBILC_PATH /public/
  87. UPLOAD_PATH public/uploads
  88. THINK_VERSION 5.0.24
  89. THINK_START_TIME 1567645599.1565
  90. THINK_START_MEM 389368
  91. EXT .php
  92. DS \
  93. THINK_PATH E:\wamp\www\crweb\thinkphp\
  94. LIB_PATH E:\wamp\www\crweb\thinkphp\library\
  95. CORE_PATH E:\wamp\www\crweb\thinkphp\library\think\
  96. TRAIT_PATH E:\wamp\www\crweb\thinkphp\library\traits\
  97. ROOT_PATH E:\wamp\www\crweb\
  98. EXTEND_PATH E:\wamp\www\crweb\extend\
  99. VENDOR_PATH E:\wamp\www\crweb\vendor\
  100. RUNTIME_PATH E:\wamp\www\crweb\runtime\
  101. LOG_PATH E:\wamp\www\crweb\runtime\log\
  102. CACHE_PATH E:\wamp\www\crweb\runtime\cache\
  103. TEMP_PATH E:\wamp\www\crweb\runtime\temp\
  104. CONF_PATH E:\wamp\www\crweb/application/
  105. CONF_EXT .php
  106. ENV_PREFIX PHP_
  107. IS_CLI false
  108. IS_WIN true
复制代码
回复

使用道具 举报

1

主题

11

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
 楼主| 发表于 2019-9-5 09:10:36 | 显示全部楼层
muzidao 发表于 2019-9-4 17:50
最新的2.6包重新下载一下,9月4号更新的

$this->userInfo['extractPrice'] = $this->userInfo['brokerage_price'] ?? 0;//可提现 这样就行了
回复

使用道具 举报

发表于 2019-9-5 10:17:24 | 显示全部楼层
xiaocong 发表于 2019-9-5 09:08
之前的报错没有了, 现在又出现了定义数组索引: brokerage_price
链接:/ebapi/user_api/my.html

eb_user 表新增一个字段 brokerage_price DECIMAL(8,2) NOT NULL DEFAULT '0'
回复

使用道具 举报

1

主题

11

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
 楼主| 发表于 2019-9-5 11:45:46 | 显示全部楼层
liaofei 发表于 2019-9-5 10:17
eb_user 表新增一个字段 brokerage_price DECIMAL(8,2) NOT NULL DEFAULT '0'

好的,非常感谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|CRMEB论坛

GMT+8, 2019-9-22 03:09 , Processed in 0.030603 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表