[0] ThrowableError in Cart.php line 277

致命错误: Call to undefined method app\common\logic\PlaceOrder::setTakeTime1()

  1. $placeOrder = new PlaceOrder($pay);
  2. $placeOrder->setUserAddress($address);
  3. $placeOrder->setConsignee($consignee);
  4. $placeOrder->setMobile($mobile);
  5. $placeOrder->setInvoiceTitle($invoice_title);
  6. $placeOrder->setUserNote($user_note);
  7. $placeOrder->setTaxpayer($taxpayer);
  8. $placeOrder->setPayPsw($payPwd);
  9. $placeOrder->setTakeTime($take_time);
  10. $placeOrder->setTakeTime1($take_time1);
  11. $placeOrder->setdelivery_date($delivery_date);
  12. $placeOrder->setdelivery_date1($delivery_date1);
  13. //扣除积分
  14. // dd($pay_points);
  15. // if($pay_points != 0) {
  16. //// dd($pay_points);
  17. //// $users_info = Db::name('users')->where("address_id", $address_id)->find();
  18. // $users_info = M('users')->where("user_id", $this->user_id)->find();
  19. // $now1 = $users_info['pay_points'];

Call Stack

  1. in Cart.php line 277
  2. at Cart->cart3()
  3. at ReflectionMethod->invokeArgs(object(Cart), []) in App.php line 346
  4. at App::invokeMethod([object(Cart), 'cart3'], []) in App.php line 609
  5. at App::module(['Mobile', 'Cart', 'cart3'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 459
  6. at App::exec(['type' => 'module', 'module' => ['Mobile', 'Cart', 'cart3']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 142
  7. at App::run() in start.php line 19
  8. at require('/Users/xuzhou/deskto...') in index.php line 49

Environment Variables

GET Data
empty

POST Data

inter
coupon_id
invoice_title
个人
taxpayer
address_id
126
pay_points
user_money
auth_code
TPSHOP
action
buy_now
goods_id
458
item_id
goods_num
1
payPwd
user_note
consignee
林xiansheng
mobile
13960752383
shop_id
mark
1
mark1
1
mark2
1
take_time
1561237200
take_time1
1561239000
act
submit_order
Files
empty

Cookies

PHPSESSID
tf3fp84b2negv1dj77nn377d70
cn
0
user
{"user_id":84,"email":"","password":"d38c29dd40ad288376dba6de68a2d468","paypwd":null,"sex":0,"birthday":0,"user_money":"0.00","frozen_money":"0.00","distribut_money":"0.00","underling_number":0,"pay_points":"0.00","address_id":0,"reg_time":1560939990,"last_login":1560939990,"last_ip":"","qq":"","mobile":"13960752383","mobile_validated":1,"oauth":"","openid":null,"unionid":null,"head_pic":"\/public\/images\/icon_goods_thumb_empty_300.png","province":0,"city":0,"district":0,"email_validated":0,"nickname":"FFFF","level":1,"discount":"1.00","total_amount":"0.00","is_lock":0,"is_distribut":0,"first_leader":0,"second_leader":0,"third_leader":0,"token":"a6d6c8ec56d4a3e5a3f273e3c5d3239a","message_mask":63,"push_id":"0","distribut_level":0,"is_vip":0,"ly_card":"","level_name":null}
user_id
84
is_distribut
0
uname
FFFF
is_mobile
0

Session

think
{ "first_login": 1, "user": { "user_id": 84, "email": "", "password": "d38c29dd40ad288376dba6de68a2d468", "paypwd": null, "sex": 0, "birthday": 0, "user_money": "0.00", "frozen_money": "0.00", "distribut_money": "0.00", "underling_number": 0, "pay_points": "0.00", "address_id": 0, "reg_time": 1560939990, "last_login": 1560939990, "last_ip": "", "qq": "", "mobile": "13960752383", "mobile_validated": 1, "oauth": "", "openid": null, "unionid": null, "head_pic": "\/public\/images\/icon_goods_thumb_empty_300.png", "province": 0, "city": 0, "district": 0, "email_validated": 0, "nickname": "FFFF", "level": 1, "discount": "1.00", "total_amount": "0.00", "is_lock": 0, "is_distribut": 0, "first_leader": 0, "second_leader": 0, "third_leader": 0, "token": "a6d6c8ec56d4a3e5a3f273e3c5d3239a", "message_mask": 63, "push_id": "0", "distribut_level": 0, "is_vip": 0, "ly_card": "" } }

Server/Request Data

HTTP_HOST
localhost
HTTP_CONNECTION
keep-alive
CONTENT_LENGTH
324
HTTP_ACCEPT
application/json, text/javascript, */*; q=0.01
HTTP_ORIGIN
http://localhost
HTTP_X_REQUESTED_WITH
XMLHttpRequest
HTTP_USER_AGENT
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36
CONTENT_TYPE
application/x-www-form-urlencoded; charset=UTF-8
HTTP_REFERER
http://localhost/index.php/mobile/Cart/cart2/action/buy_now.html
HTTP_ACCEPT_ENCODING
gzip, deflate, br
HTTP_ACCEPT_LANGUAGE
zh-CN,zh;q=0.9,en;q=0.8
HTTP_COOKIE
PHPSESSID=tf3fp84b2negv1dj77nn377d70; cn=0; user=%7B%22user_id%22%3A84%2C%22email%22%3A%22%22%2C%22password%22%3A%22d38c29dd40ad288376dba6de68a2d468%22%2C%22paypwd%22%3Anull%2C%22sex%22%3A0%2C%22birthday%22%3A0%2C%22user_money%22%3A%220.00%22%2C%22frozen_money%22%3A%220.00%22%2C%22distribut_money%22%3A%220.00%22%2C%22underling_number%22%3A0%2C%22pay_points%22%3A%220.00%22%2C%22address_id%22%3A0%2C%22reg_time%22%3A1560939990%2C%22last_login%22%3A1560939990%2C%22last_ip%22%3A%22%22%2C%22qq%22%3A%22%22%2C%22mobile%22%3A%2213960752383%22%2C%22mobile_validated%22%3A1%2C%22oauth%22%3A%22%22%2C%22openid%22%3Anull%2C%22unionid%22%3Anull%2C%22head_pic%22%3A%22%5C%2Fpublic%5C%2Fimages%5C%2Ficon_goods_thumb_empty_300.png%22%2C%22province%22%3A0%2C%22city%22%3A0%2C%22district%22%3A0%2C%22email_validated%22%3A0%2C%22nickname%22%3A%22FFFF%22%2C%22level%22%3A1%2C%22discount%22%3A%221.00%22%2C%22total_amount%22%3A%220.00%22%2C%22is_lock%22%3A0%2C%22is_distribut%22%3A0%2C%22first_leader%22%3A0%2C%22second_leader%22%3A0%2C%22third_leader%22%3A0%2C%22token%22%3A%22a6d6c8ec56d4a3e5a3f273e3c5d3239a%22%2C%22message_mask%22%3A63%2C%22push_id%22%3A%220%22%2C%22distribut_level%22%3A0%2C%22is_vip%22%3A0%2C%22ly_card%22%3A%22%22%2C%22level_name%22%3Anull%7D; user_id=84; is_distribut=0; uname=FFFF; is_mobile=0
PATH
/usr/bin:/bin:/usr/sbin:/sbin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache/2.4.33 (Unix) PHP/7.1.23
SERVER_NAME
localhost
SERVER_ADDR
::1
SERVER_PORT
80
REMOTE_ADDR
::1
DOCUMENT_ROOT
/Users/xuzhou/desktop/lingyan/lingyan/
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/Users/xuzhou/desktop/lingyan/lingyan/
SERVER_ADMIN
you@example.com
SCRIPT_FILENAME
/Users/xuzhou/desktop/lingyan/lingyan/index.php
REMOTE_PORT
54532
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
POST
QUERY_STRING
REQUEST_URI
/index.php/Mobile/Cart/cart3.html
SCRIPT_NAME
/index.php
PATH_INFO
/Mobile/Cart/cart3.html
PATH_TRANSLATED
/Users/xuzhou/desktop/lingyan/lingyan/Mobile/Cart/cart3.html
PHP_SELF
/index.php/Mobile/Cart/cart3.html
REQUEST_TIME_FLOAT
1561219773.333
REQUEST_TIME
1561219773
Environment Variables
empty

ThinkPHP Constants

PLUGIN_PATH
/Users/xuzhou/desktop/lingyan/lingyan/plugins/
UPLOAD_PATH
public/upload/
TPSHOP_CACHE_TIME
1
SITE_URL
http://localhost
INSTALL_DATE
1463741583
SERIALNUMBER
20160520065303oCWIoa
APP_PATH
/Users/xuzhou/desktop/lingyan/lingyan/application/
NOW_TIME
1561219773
THINK_VERSION
5.0.15
THINK_START_TIME
1561219773.3351
THINK_START_MEM
408480
EXT
.php
DS
/
THINK_PATH
/Users/xuzhou/desktop/lingyan/lingyan/thinkphp/
LIB_PATH
/Users/xuzhou/desktop/lingyan/lingyan/thinkphp/library/
CORE_PATH
/Users/xuzhou/desktop/lingyan/lingyan/thinkphp/library/think/
TRAIT_PATH
/Users/xuzhou/desktop/lingyan/lingyan/thinkphp/library/traits/
ROOT_PATH
/Users/xuzhou/desktop/lingyan/lingyan/
EXTEND_PATH
/Users/xuzhou/desktop/lingyan/lingyan/extend/
VENDOR_PATH
/Users/xuzhou/desktop/lingyan/lingyan/vendor/
RUNTIME_PATH
/Users/xuzhou/desktop/lingyan/lingyan/runtime/
LOG_PATH
/Users/xuzhou/desktop/lingyan/lingyan/runtime/log/
CACHE_PATH
/Users/xuzhou/desktop/lingyan/lingyan/runtime/cache/
TEMP_PATH
/Users/xuzhou/desktop/lingyan/lingyan/runtime/temp/
CONF_PATH
/Users/xuzhou/desktop/lingyan/lingyan/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
IS_AJAX
true
IS_GET
false
IS_POST
true
MODULE_NAME
mobile
CONTROLLER_NAME
Cart
ACTION_NAME
cart3
PREFIX
tp_
SESSION_ID
tf3fp84b2negv1dj77nn377d70