From 053bb42365086e7a612b170b197283b5902c59e1 Mon Sep 17 00:00:00 2001 From: lcc Date: Thu, 15 May 2025 00:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A5=BD=E8=BD=A6=E8=A1=A5?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E5=92=8C=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/config/autoload.php | 2 +- admin/controllers/Common.php | 9 +- admin/controllers/app/licheb/Member.php | 3 +- admin/controllers/biz/store/Store.php | 55 +- admin/controllers/receiver/Clues.php | 159 +- admin/views/biz/store/add_money.php | 18 + admin/views/biz/store/edit.php | 37 +- admin/views/biz/store/lists.php | 88 +- admin/views/receiver/clues/edit.php | 513 +++- admin/views/receiver/clues/lists.php | 41 +- agent/admin/.htaccess | 6 + agent/admin/cache/index.html | 11 + agent/admin/config/app.php | 5 + agent/admin/config/autoload.php | 135 ++ agent/admin/config/config.php | 523 +++++ agent/admin/config/constants.php | 112 + agent/admin/config/database.php | 117 + agent/admin/config/doctypes.php | 24 + agent/admin/config/foreign_chars.php | 103 + agent/admin/config/hooks.php | 20 + agent/admin/config/index.html | 11 + agent/admin/config/jwt.php | 9 + agent/admin/config/memcached.php | 19 + agent/admin/config/migration.php | 84 + agent/admin/config/mimes.php | 184 ++ agent/admin/config/mongo.php | 11 + agent/admin/config/profiler.php | 14 + agent/admin/config/qiniu.php | 26 + agent/admin/config/redis.php | 11 + agent/admin/config/rest.php | 605 +++++ agent/admin/config/routes.php | 54 + agent/admin/config/smileys.php | 64 + agent/admin/config/sphinx.php | 6 + agent/admin/config/user_agents.php | 214 ++ agent/admin/config/wechat.php | 6 + agent/admin/controllers/Common.php | 192 ++ agent/admin/controllers/Welcome.php | 16 + .../admin/controllers/api/BaseController.php | 110 + agent/admin/controllers/api/Captcha.php | 43 + agent/admin/controllers/api/Login.php | 182 ++ agent/admin/controllers/api/Upload.php | 85 + agent/admin/controllers/api/auth/Password.php | 52 + agent/admin/controllers/api/auth/User.php | 53 + agent/admin/controllers/api/car/Product.php | 170 ++ .../controllers/api/car/ProductCoupon.php | 105 + agent/admin/controllers/api/home/Data.php | 41 + .../api/institution/Organization.php | 255 ++ .../api/institution/OrganizationUser.php | 325 +++ .../controllers/api/institution/Team.php | 164 ++ .../controllers/api/institution/TeamUser.php | 244 ++ .../controllers/api/organization/Cmmssn.php | 95 + .../controllers/api/organization/Manage.php | 124 + .../controllers/api/organization/User.php | 318 +++ agent/admin/controllers/api/pinan/User.php | 175 ++ .../admin/controllers/api/receiver/Clues.php | 144 ++ .../controllers/api/receiver/Customer.php | 221 ++ .../controllers/api/receiver/Subsidy.php | 236 ++ .../admin/controllers/api/sylive/Activity.php | 825 +++++++ .../controllers/api/sylive/Blacklist.php | 182 ++ agent/admin/controllers/api/sylive/Goods.php | 252 ++ agent/admin/controllers/api/sylive/Groups.php | 332 +++ .../controllers/api/sylive/GroupsCustomer.php | 337 +++ .../controllers/api/sylive/GroupsExchange.php | 451 ++++ .../controllers/api/sylive/GroupsOrder.php | 431 ++++ .../api/sylive/GroupsStatistics.php | 1242 ++++++++++ .../controllers/api/sylive/GroupsUser.php | 278 +++ .../controllers/api/sylive/GroupsWin.php | 254 ++ agent/admin/controllers/api/sylive/Live.php | 346 +++ .../admin/controllers/api/sylive/Members.php | 320 +++ agent/admin/controllers/api/sylive/Order.php | 186 ++ .../controllers/api/sylive/Statistics.php | 1345 +++++++++++ .../controllers/api/system/Dictionary.php | 125 + .../controllers/api/system/DictionaryData.php | 169 ++ .../controllers/api/system/LoginRecord.php | 58 + agent/admin/controllers/api/system/Menu.php | 154 ++ .../api/system/OperationRecord.php | 100 + agent/admin/controllers/api/system/Role.php | 145 ++ .../admin/controllers/api/system/RoleMenu.php | 66 + agent/admin/controllers/api/system/User.php | 272 +++ .../admin/controllers/api/sytopic/Enroll.php | 137 ++ .../admin/controllers/api/sytopic/Module.php | 260 +++ agent/admin/controllers/api/sytopic/Topic.php | 245 ++ agent/admin/controllers/auto/Area.php | 63 + .../admin/controllers/auto/BaseController.php | 124 + agent/admin/controllers/auto/Biz.php | 37 + agent/admin/controllers/auto/Brand.php | 76 + agent/admin/controllers/auto/Config.php | 407 ++++ agent/admin/controllers/auto/Home.php | 17 + agent/admin/controllers/auto/Login.php | 58 + agent/admin/controllers/auto/Sms.php | 48 + agent/admin/controllers/auto/Subsidy.php | 108 + agent/admin/controllers/auto/Ucenter.php | 259 ++ agent/admin/controllers/auto/Upload.php | 80 + agent/admin/controllers/auto/car/Brand.php | 36 + agent/admin/controllers/auto/car/Coupon.php | 87 + agent/admin/controllers/auto/car/Product.php | 103 + .../controllers/pingan/BaseController.php | 133 ++ agent/admin/controllers/pingan/Captcha.php | 43 + agent/admin/controllers/pingan/Login.php | 171 ++ agent/admin/controllers/pingan/Register.php | 65 + agent/admin/controllers/pingan/Upload.php | 85 + agent/admin/controllers/pingan/auth/User.php | 62 + .../admin/controllers/pingan/car/Product.php | 206 ++ .../controllers/pingan/car/ProductCoupon.php | 106 + agent/admin/controllers/pingan/home/Data.php | 114 + .../pingan/organization/Manage.php | 37 + .../controllers/pingan/organization/User.php | 371 +++ .../controllers/pingan/receiver/Clues.php | 420 ++++ .../controllers/pingan/receiver/Customer.php | 354 +++ .../controllers/pingan/system/Dictionary.php | 125 + .../pingan/system/DictionaryData.php | 169 ++ .../controllers/pingan/system/LoginRecord.php | 58 + .../admin/controllers/pingan/system/Menu.php | 154 ++ .../pingan/system/OperationRecord.php | 100 + .../admin/controllers/pingan/system/Role.php | 137 ++ .../controllers/pingan/system/RoleMenu.php | 66 + .../admin/controllers/pingan/system/User.php | 272 +++ .../admin/controllers/pingan/user/Cmmssn.php | 105 + agent/admin/controllers/pingan/user/Team.php | 61 + .../controllers/pingan/user/UserInfo.php | 59 + agent/admin/core/HD_Controller.php | 27 + agent/admin/core/HD_Loader.php | 1584 +++++++++++++ agent/admin/core/HD_Model.php | 605 +++++ agent/admin/core/HD_Service.php | 32 + agent/admin/core/index.html | 11 + agent/admin/helpers/authorization_helper.php | 28 + agent/admin/helpers/fn_helper.php | 358 +++ agent/admin/helpers/format_helper.php | 101 + agent/admin/helpers/image_helper.php | 78 + agent/admin/helpers/index.html | 11 + agent/admin/hooks/ApiAuthHook.php | 292 +++ agent/admin/hooks/index.html | 11 + agent/admin/index.html | 11 + agent/admin/language/english/index.html | 11 + .../language/english/rest_controller_lang.php | 18 + agent/admin/language/index.html | 11 + agent/admin/language/zh/error_lang.php | 23 + .../language/zh/rest_controller_lang.php | 14 + .../admin/libraries/BeforeValidException.php | 7 + agent/admin/libraries/ExpiredException.php | 7 + agent/admin/libraries/Format.php | 526 +++++ agent/admin/libraries/JWT.php | 362 +++ agent/admin/libraries/MyCaptcha.php | 141 ++ agent/admin/libraries/Mymailer.php | 104 + agent/admin/libraries/REST_Controller.php | 2075 +++++++++++++++++ .../libraries/SignatureInvalidException.php | 7 + agent/admin/libraries/Wechatmsg.php | 290 +++ agent/admin/libraries/Wetemplate.php | 347 +++ agent/admin/libraries/api/Record.php | 292 +++ agent/admin/libraries/index.html | 11 + agent/admin/logs/index.html | 11 + agent/admin/models/index.html | 11 + agent/admin/third_party/index.html | 11 + agent/admin/views/errors/cli/error_404.php | 8 + agent/admin/views/errors/cli/error_db.php | 8 + .../views/errors/cli/error_exception.php | 21 + .../admin/views/errors/cli/error_general.php | 8 + agent/admin/views/errors/cli/error_php.php | 21 + agent/admin/views/errors/cli/index.html | 11 + agent/admin/views/errors/html/error_404.php | 64 + agent/admin/views/errors/html/error_db.php | 64 + .../views/errors/html/error_exception.php | 32 + .../admin/views/errors/html/error_general.php | 64 + agent/admin/views/errors/html/error_php.php | 33 + agent/admin/views/errors/html/index.html | 11 + agent/admin/views/errors/index.html | 11 + agent/admin/views/welcome_message.php | 45 + api/config/database.php | 21 + api/controllers/Welcome.php | 93 + api/controllers/wxapp/Wxapp.php | 12 +- .../wxapp/licheb/BizAccountLog.php | 61 + api/controllers/wxapp/licheb/Clues.php | 12 + api/controllers/wxapp/licheb/Cusorder.php | 98 +- .../wxapp/licheb/CusorderDestroy.php | 116 + api/controllers/wxapp/licheb/Customers.php | 45 +- api/controllers/wxapp/licheb/User.php | 73 +- common/helpers/comm_helper.php | 23 +- common/helpers/order_helper.php | 15 +- common/libraries/BizAccount.php | 290 +++ common/libraries/Hd_wechat.php | 4 +- common/libraries/Jssdk.php | 76 + common/libraries/MyEncryption.php | 150 ++ common/libraries/MyResponse.php | 40 + common/libraries/TcGeocoder.php | 80 + .../entity/AutoProductCouponEntity.php | 124 + common/libraries/entity/AutoProductEntity.php | 256 ++ .../libraries/entity/AutoUserCouponEntity.php | 168 ++ .../entity/OrganizationCmmssnEntity.php | 83 + .../entity/PinganUsersCmmssnEntity.php | 64 + common/libraries/entity/PinganUsersEntity.php | 39 + .../entity/ReceiverOrderSubsidyEntity.php | 188 ++ common/libraries/receiver/Orders_entity.php | 47 + common/models/Area_model.php | 64 + .../models/agent/Auto_product_city_model.php | 36 + .../agent/Auto_product_coupon_biz_model.php | 12 + .../agent/Auto_product_coupon_model.php | 49 + .../models/agent/Auto_product_label_model.php | 43 + common/models/agent/Auto_product_model.php | 168 ++ .../agent/Auto_product_setting_model.php | 38 + .../models/agent/Auto_user_coupon_model.php | 116 + common/models/agent/Auto_user_data_model.php | 14 + common/models/agent/Auto_user_model.php | 71 + .../agent/Receiver_order_subsidy_model.php | 32 + .../agent/admin/Market_sys_admin_model.php | 17 + .../Market_sys_dictionary_data_model.php | 17 + .../admin/Market_sys_dictionary_model.php | 17 + .../admin/Market_sys_login_record_model.php | 17 + .../agent/admin/Market_sys_menu_model.php | 17 + .../Market_sys_operation_record_model.php | 17 + .../agent/admin/Market_sys_role_model.php | 17 + .../Organization_cmmssn_model.php | 14 + .../agent/organization/Organization_model.php | 90 + .../pingan/Pingan_sys_login_record_model.php | 12 + .../agent/pingan/Pingan_sys_menu_model.php | 12 + .../Pingan_sys_operation_record_model.php | 12 + .../agent/pingan/Pingan_sys_role_model.php | 12 + .../pingan/Pingan_users_cmmssn_model.php | 24 + .../agent/pingan/Pingan_users_data_model.php | 13 + .../agent/pingan/Pingan_users_model.php | 126 + .../app/licheb/App_licheb_users_model.php | 8 +- common/models/biz/Biz_accountLog_model.php | 12 + common/models/biz/Biz_account_model.php | 12 + common/models/biz/Biz_model.php | 4 +- .../models/receiver/Receiver_clues_model.php | 109 + .../receiver/Receiver_customers_model.php | 305 ++- .../models/receiver/Receiver_enroll_model.php | 39 + common/third_party/TcGeocoder.php | 105 + www/agent/admin/index.php | 319 +++ www/agent/admin/robots.txt | 2 + www/agent/auto/index.php | 319 +++ www/agent/auto/robots.txt | 2 + 231 files changed, 32265 insertions(+), 192 deletions(-) create mode 100644 admin/views/biz/store/add_money.php create mode 100644 agent/admin/.htaccess create mode 100644 agent/admin/cache/index.html create mode 100644 agent/admin/config/app.php create mode 100644 agent/admin/config/autoload.php create mode 100644 agent/admin/config/config.php create mode 100644 agent/admin/config/constants.php create mode 100644 agent/admin/config/database.php create mode 100644 agent/admin/config/doctypes.php create mode 100644 agent/admin/config/foreign_chars.php create mode 100644 agent/admin/config/hooks.php create mode 100644 agent/admin/config/index.html create mode 100644 agent/admin/config/jwt.php create mode 100644 agent/admin/config/memcached.php create mode 100644 agent/admin/config/migration.php create mode 100644 agent/admin/config/mimes.php create mode 100644 agent/admin/config/mongo.php create mode 100644 agent/admin/config/profiler.php create mode 100644 agent/admin/config/qiniu.php create mode 100644 agent/admin/config/redis.php create mode 100644 agent/admin/config/rest.php create mode 100644 agent/admin/config/routes.php create mode 100644 agent/admin/config/smileys.php create mode 100644 agent/admin/config/sphinx.php create mode 100644 agent/admin/config/user_agents.php create mode 100644 agent/admin/config/wechat.php create mode 100644 agent/admin/controllers/Common.php create mode 100644 agent/admin/controllers/Welcome.php create mode 100644 agent/admin/controllers/api/BaseController.php create mode 100644 agent/admin/controllers/api/Captcha.php create mode 100644 agent/admin/controllers/api/Login.php create mode 100644 agent/admin/controllers/api/Upload.php create mode 100644 agent/admin/controllers/api/auth/Password.php create mode 100644 agent/admin/controllers/api/auth/User.php create mode 100644 agent/admin/controllers/api/car/Product.php create mode 100644 agent/admin/controllers/api/car/ProductCoupon.php create mode 100644 agent/admin/controllers/api/home/Data.php create mode 100644 agent/admin/controllers/api/institution/Organization.php create mode 100644 agent/admin/controllers/api/institution/OrganizationUser.php create mode 100644 agent/admin/controllers/api/institution/Team.php create mode 100644 agent/admin/controllers/api/institution/TeamUser.php create mode 100644 agent/admin/controllers/api/organization/Cmmssn.php create mode 100644 agent/admin/controllers/api/organization/Manage.php create mode 100644 agent/admin/controllers/api/organization/User.php create mode 100644 agent/admin/controllers/api/pinan/User.php create mode 100644 agent/admin/controllers/api/receiver/Clues.php create mode 100644 agent/admin/controllers/api/receiver/Customer.php create mode 100644 agent/admin/controllers/api/receiver/Subsidy.php create mode 100644 agent/admin/controllers/api/sylive/Activity.php create mode 100644 agent/admin/controllers/api/sylive/Blacklist.php create mode 100644 agent/admin/controllers/api/sylive/Goods.php create mode 100644 agent/admin/controllers/api/sylive/Groups.php create mode 100644 agent/admin/controllers/api/sylive/GroupsCustomer.php create mode 100644 agent/admin/controllers/api/sylive/GroupsExchange.php create mode 100644 agent/admin/controllers/api/sylive/GroupsOrder.php create mode 100644 agent/admin/controllers/api/sylive/GroupsStatistics.php create mode 100644 agent/admin/controllers/api/sylive/GroupsUser.php create mode 100644 agent/admin/controllers/api/sylive/GroupsWin.php create mode 100644 agent/admin/controllers/api/sylive/Live.php create mode 100644 agent/admin/controllers/api/sylive/Members.php create mode 100644 agent/admin/controllers/api/sylive/Order.php create mode 100644 agent/admin/controllers/api/sylive/Statistics.php create mode 100644 agent/admin/controllers/api/system/Dictionary.php create mode 100644 agent/admin/controllers/api/system/DictionaryData.php create mode 100644 agent/admin/controllers/api/system/LoginRecord.php create mode 100644 agent/admin/controllers/api/system/Menu.php create mode 100644 agent/admin/controllers/api/system/OperationRecord.php create mode 100644 agent/admin/controllers/api/system/Role.php create mode 100644 agent/admin/controllers/api/system/RoleMenu.php create mode 100644 agent/admin/controllers/api/system/User.php create mode 100644 agent/admin/controllers/api/sytopic/Enroll.php create mode 100644 agent/admin/controllers/api/sytopic/Module.php create mode 100644 agent/admin/controllers/api/sytopic/Topic.php create mode 100644 agent/admin/controllers/auto/Area.php create mode 100644 agent/admin/controllers/auto/BaseController.php create mode 100644 agent/admin/controllers/auto/Biz.php create mode 100644 agent/admin/controllers/auto/Brand.php create mode 100644 agent/admin/controllers/auto/Config.php create mode 100644 agent/admin/controllers/auto/Home.php create mode 100644 agent/admin/controllers/auto/Login.php create mode 100644 agent/admin/controllers/auto/Sms.php create mode 100644 agent/admin/controllers/auto/Subsidy.php create mode 100644 agent/admin/controllers/auto/Ucenter.php create mode 100644 agent/admin/controllers/auto/Upload.php create mode 100644 agent/admin/controllers/auto/car/Brand.php create mode 100644 agent/admin/controllers/auto/car/Coupon.php create mode 100644 agent/admin/controllers/auto/car/Product.php create mode 100644 agent/admin/controllers/pingan/BaseController.php create mode 100644 agent/admin/controllers/pingan/Captcha.php create mode 100644 agent/admin/controllers/pingan/Login.php create mode 100644 agent/admin/controllers/pingan/Register.php create mode 100644 agent/admin/controllers/pingan/Upload.php create mode 100644 agent/admin/controllers/pingan/auth/User.php create mode 100644 agent/admin/controllers/pingan/car/Product.php create mode 100644 agent/admin/controllers/pingan/car/ProductCoupon.php create mode 100644 agent/admin/controllers/pingan/home/Data.php create mode 100644 agent/admin/controllers/pingan/organization/Manage.php create mode 100644 agent/admin/controllers/pingan/organization/User.php create mode 100644 agent/admin/controllers/pingan/receiver/Clues.php create mode 100644 agent/admin/controllers/pingan/receiver/Customer.php create mode 100644 agent/admin/controllers/pingan/system/Dictionary.php create mode 100644 agent/admin/controllers/pingan/system/DictionaryData.php create mode 100644 agent/admin/controllers/pingan/system/LoginRecord.php create mode 100644 agent/admin/controllers/pingan/system/Menu.php create mode 100644 agent/admin/controllers/pingan/system/OperationRecord.php create mode 100644 agent/admin/controllers/pingan/system/Role.php create mode 100644 agent/admin/controllers/pingan/system/RoleMenu.php create mode 100644 agent/admin/controllers/pingan/system/User.php create mode 100644 agent/admin/controllers/pingan/user/Cmmssn.php create mode 100644 agent/admin/controllers/pingan/user/Team.php create mode 100644 agent/admin/controllers/pingan/user/UserInfo.php create mode 100644 agent/admin/core/HD_Controller.php create mode 100644 agent/admin/core/HD_Loader.php create mode 100644 agent/admin/core/HD_Model.php create mode 100644 agent/admin/core/HD_Service.php create mode 100644 agent/admin/core/index.html create mode 100644 agent/admin/helpers/authorization_helper.php create mode 100644 agent/admin/helpers/fn_helper.php create mode 100644 agent/admin/helpers/format_helper.php create mode 100644 agent/admin/helpers/image_helper.php create mode 100644 agent/admin/helpers/index.html create mode 100644 agent/admin/hooks/ApiAuthHook.php create mode 100644 agent/admin/hooks/index.html create mode 100644 agent/admin/index.html create mode 100644 agent/admin/language/english/index.html create mode 100644 agent/admin/language/english/rest_controller_lang.php create mode 100644 agent/admin/language/index.html create mode 100644 agent/admin/language/zh/error_lang.php create mode 100644 agent/admin/language/zh/rest_controller_lang.php create mode 100644 agent/admin/libraries/BeforeValidException.php create mode 100644 agent/admin/libraries/ExpiredException.php create mode 100644 agent/admin/libraries/Format.php create mode 100644 agent/admin/libraries/JWT.php create mode 100644 agent/admin/libraries/MyCaptcha.php create mode 100644 agent/admin/libraries/Mymailer.php create mode 100644 agent/admin/libraries/REST_Controller.php create mode 100644 agent/admin/libraries/SignatureInvalidException.php create mode 100644 agent/admin/libraries/Wechatmsg.php create mode 100644 agent/admin/libraries/Wetemplate.php create mode 100644 agent/admin/libraries/api/Record.php create mode 100644 agent/admin/libraries/index.html create mode 100644 agent/admin/logs/index.html create mode 100644 agent/admin/models/index.html create mode 100644 agent/admin/third_party/index.html create mode 100644 agent/admin/views/errors/cli/error_404.php create mode 100644 agent/admin/views/errors/cli/error_db.php create mode 100644 agent/admin/views/errors/cli/error_exception.php create mode 100644 agent/admin/views/errors/cli/error_general.php create mode 100644 agent/admin/views/errors/cli/error_php.php create mode 100644 agent/admin/views/errors/cli/index.html create mode 100644 agent/admin/views/errors/html/error_404.php create mode 100644 agent/admin/views/errors/html/error_db.php create mode 100644 agent/admin/views/errors/html/error_exception.php create mode 100644 agent/admin/views/errors/html/error_general.php create mode 100644 agent/admin/views/errors/html/error_php.php create mode 100644 agent/admin/views/errors/html/index.html create mode 100644 agent/admin/views/errors/index.html create mode 100644 agent/admin/views/welcome_message.php create mode 100644 api/controllers/wxapp/licheb/BizAccountLog.php create mode 100644 api/controllers/wxapp/licheb/CusorderDestroy.php create mode 100644 common/libraries/BizAccount.php create mode 100644 common/libraries/Jssdk.php create mode 100644 common/libraries/MyEncryption.php create mode 100644 common/libraries/MyResponse.php create mode 100644 common/libraries/TcGeocoder.php create mode 100644 common/libraries/entity/AutoProductCouponEntity.php create mode 100644 common/libraries/entity/AutoProductEntity.php create mode 100644 common/libraries/entity/AutoUserCouponEntity.php create mode 100644 common/libraries/entity/OrganizationCmmssnEntity.php create mode 100644 common/libraries/entity/PinganUsersCmmssnEntity.php create mode 100644 common/libraries/entity/PinganUsersEntity.php create mode 100644 common/libraries/entity/ReceiverOrderSubsidyEntity.php create mode 100644 common/models/agent/Auto_product_city_model.php create mode 100644 common/models/agent/Auto_product_coupon_biz_model.php create mode 100644 common/models/agent/Auto_product_coupon_model.php create mode 100644 common/models/agent/Auto_product_label_model.php create mode 100644 common/models/agent/Auto_product_model.php create mode 100644 common/models/agent/Auto_product_setting_model.php create mode 100644 common/models/agent/Auto_user_coupon_model.php create mode 100644 common/models/agent/Auto_user_data_model.php create mode 100644 common/models/agent/Auto_user_model.php create mode 100644 common/models/agent/Receiver_order_subsidy_model.php create mode 100644 common/models/agent/admin/Market_sys_admin_model.php create mode 100644 common/models/agent/admin/Market_sys_dictionary_data_model.php create mode 100644 common/models/agent/admin/Market_sys_dictionary_model.php create mode 100644 common/models/agent/admin/Market_sys_login_record_model.php create mode 100644 common/models/agent/admin/Market_sys_menu_model.php create mode 100644 common/models/agent/admin/Market_sys_operation_record_model.php create mode 100644 common/models/agent/admin/Market_sys_role_model.php create mode 100644 common/models/agent/organization/Organization_cmmssn_model.php create mode 100644 common/models/agent/organization/Organization_model.php create mode 100644 common/models/agent/pingan/Pingan_sys_login_record_model.php create mode 100644 common/models/agent/pingan/Pingan_sys_menu_model.php create mode 100644 common/models/agent/pingan/Pingan_sys_operation_record_model.php create mode 100644 common/models/agent/pingan/Pingan_sys_role_model.php create mode 100644 common/models/agent/pingan/Pingan_users_cmmssn_model.php create mode 100644 common/models/agent/pingan/Pingan_users_data_model.php create mode 100644 common/models/agent/pingan/Pingan_users_model.php create mode 100644 common/models/biz/Biz_accountLog_model.php create mode 100644 common/models/biz/Biz_account_model.php create mode 100644 common/models/receiver/Receiver_enroll_model.php create mode 100644 common/third_party/TcGeocoder.php create mode 100644 www/agent/admin/index.php create mode 100644 www/agent/admin/robots.txt create mode 100644 www/agent/auto/index.php create mode 100644 www/agent/auto/robots.txt diff --git a/admin/config/autoload.php b/admin/config/autoload.php index 2eccb128..4194ef90 100644 --- a/admin/config/autoload.php +++ b/admin/config/autoload.php @@ -58,7 +58,7 @@ $autoload['packages'] = array(); | | $autoload['libraries'] = array('user_agent' => 'ua'); */ -$autoload['libraries'] = array('database'); +$autoload['libraries'] = array('database','myResponse'); /* | ------------------------------------------------------------------- diff --git a/admin/controllers/Common.php b/admin/controllers/Common.php index 3fabfd8e..2857aad3 100644 --- a/admin/controllers/Common.php +++ b/admin/controllers/Common.php @@ -415,9 +415,12 @@ class Common extends CI_Controller $page = $this->input->post('page') ? intval($this->input->post('page')) : 1; $size = $this->input->post('size') ? intval($this->input->post('size')) : 10; $brand_id = intval($this->input->post('brand_id')); + $car_brand_id = intval($this->input->post('car_brand_id')); $province_id = intval($this->input->post('province_id')); $city_id = intval($this->input->post('city_id')); $county_id = intval($this->input->post('county_id')); + $type = intval($this->input->post('type')); + $unset_city_limit = intval($this->input->post('unset_city_limit')); $use_shop_list = $this->input->post('use_shop_list'); $sys_cate_id = intval($this->input->post('sys_cate_id')); @@ -430,6 +433,7 @@ class Common extends CI_Controller } } $where['status'] = 1; + $car_brand_id && $where['car_brand_id'] = $car_brand_id; $sys_cate_id && $where['cate_id'] = $sys_cate_id; $biz_name && $where['biz_name like "%' . $biz_name . '%"'] = null; $brand_id && $where['brand_id'] = $brand_id; @@ -437,8 +441,9 @@ class Common extends CI_Controller $city_id && $where['city_id'] = $city_id; $county_id && $where['county_id'] = $county_id;; $ids && $where['id not in (' . $ids . ')'] = null; + $type && $where['type'] = $type; - if ($province_id && $city_id) { + if (($province_id && $city_id) || $unset_city_limit) { $count = $this->mdBiz->count($where); if ($count) { $resBiz = $this->mdBiz->select($where, 'id desc', $page, $size); @@ -1103,7 +1108,7 @@ class Common extends CI_Controller $lists = $this->auto_brand_model->select($where, 'initial asc', $page, $size); foreach ($lists as $key => $val) { $itemsList[] = [ - 'id' => $val['id'], + 'id' => intval($val['id']), 'name' => $val['name'], 'is_checked' => $itemsChecked[$val['id']] ? 1 : 0 ]; diff --git a/admin/controllers/app/licheb/Member.php b/admin/controllers/app/licheb/Member.php index 7e22e657..3192eb2a 100644 --- a/admin/controllers/app/licheb/Member.php +++ b/admin/controllers/app/licheb/Member.php @@ -5,7 +5,7 @@ defined('BASEPATH') or exit('No direct script access allowed'); class Member extends HD_Controller { - private $groups = [1 => '车管家', 2 => '店长', 3 => '投资人', 4 => '客户成功经理']; + private $groups; public function __construct() { @@ -13,6 +13,7 @@ class Member extends HD_Controller $this->load->model('app/licheb/App_licheb_users_model', 'userM'); $this->load->model('app/licheb/App_licheb_channel_biz_model', 'mdChannelBiz'); $this->load->model("biz/biz_model"); + $this->groups = $this->userM->get_group(); } //首页信息 diff --git a/admin/controllers/biz/store/Store.php b/admin/controllers/biz/store/Store.php index dec57c14..2c8968cd 100644 --- a/admin/controllers/biz/store/Store.php +++ b/admin/controllers/biz/store/Store.php @@ -19,6 +19,9 @@ class Store extends HD_Controller $this->load->helper('image_helper'); $this->load->model("biz/biz_model"); $this->load->model('area_model'); + $this->load->library('bizAccount'); + $this->load->helper('db'); + $this->load->model('auto/auto_brand_model'); } public function index() @@ -69,11 +72,23 @@ class Store extends HD_Controller $biz_lists = $this->biz_model->select($where, 'id desc', $page, $pagesize); $count = $this->biz_model->count($where); $bizlists = []; - foreach ($biz_lists as $v) { - $v['c_time'] = date('Y-m-d H:i:s', $v['c_time']); - $v['biz_type'] = $typeAry[$v['type']]; - $bizlists[] = $v; + $account = new BizAccount(); + $brandAry = $this->auto_brand_model->select(['status>'=>0], 'initial asc', 0, 0, 'id,name'); + if($biz_lists){ + $map = []; + foreach($brandAry as $item) { + $map[$item['id']] = null !== $item['name'] ? $item['name'] : ''; + } + foreach ($biz_lists as $v) { + $bizAccount = $account->getAccountBizId($v['id']); + $v['money_left'] = $bizAccount ? $bizAccount['money_left'] : 0; + $v['c_time'] = date('Y-m-d H:i:s', $v['c_time']); + $v['biz_type'] = $typeAry[$v['type']]; + $v['brand_name'] = $map[$v['car_brand_id']]; + $bizlists[] = $v; + } } + $this->data['brandAry'] = $brandAry; $this->data['params'] = $params; $this->data['lists'] = $bizlists; $this->data['typeAry'] = $typeAry; @@ -101,6 +116,7 @@ class Store extends HD_Controller $biz['county_id'] && $areas = $this->sys_area_model->select(array('county_id' => $biz['county_id'])); $this->data['areas'] = $areas; $biz['avatar'] = build_qiniu_image_url($biz['headimg'], 200, 200); + $biz['car_brand_id'] = $biz['car_brand_id'] ? intval($biz['car_brand_id']) : ''; $this->data['biz'] = $biz; } else { @@ -118,7 +134,7 @@ class Store extends HD_Controller 'type' => 0, 'company_id' => 0, 'auto_brands' => array(), - 'car_brand_id' => 0 + 'car_brand_id' => '' );//默认福建城市 $this->data['biz'] = $biz; } @@ -150,6 +166,7 @@ class Store extends HD_Controller $biz['lat'] = $this->input->post('lat', true); $biz['lng'] = $this->input->post('lng', true); $biz['type'] = intval($this->input->post('type', true)); + $biz['car_brand_id'] = intval($this->input->post('car_brand_id', true)) ?: ''; //上传头像 $biz['headimg'] = $this->input->post('headimg'); @@ -191,6 +208,7 @@ class Store extends HD_Controller $biz['lat'] = $this->input->post('lat', true); $biz['lng'] = $this->input->post('lng', true); $biz['type'] = intval($this->input->post('type', true)); + $biz['car_brand_id'] = intval($this->input->post('car_brand_id', true)) ?: ''; //上传头像 $biz['headimg'] = $this->input->post('headimg'); $res = $this->biz_model->update($biz, array('id' => $id)); @@ -270,7 +288,7 @@ class Store extends HD_Controller $county_id && $where['county_id'] = $county_id; $title && $where["biz_name like '%{$title}%'"] = null; - if($province_id||$city_id||$county_id||$title){ + if ($province_id || $city_id || $county_id || $title) { $total = $this->biz_model->count($where); } @@ -291,4 +309,29 @@ class Store extends HD_Controller $this->data = array('total' => $total, 'list' => $lists); return $this->show_json(SYS_CODE_SUCCESS); } + + public function add_money() + { + $id = intval($this->input->get_post('id')); + $biz = $this->biz_model->get(array('id' => $id, 'status>-1' => null)); + if (!$biz) { + return $this->show_json(0, '门店不存在'); + } + if ($this->input->method() == 'post') { + $money = $this->input->post('money'); + if (!$money) { + return $this->show_json(SYS_CODE_FAIL, '请输入金额'); + } + $bizAccount = new BizAccount(); + $account = $bizAccount->getAccountBizId($id, true); + $sqlArr = $bizAccount->charge($account['id'], $money, '充值'); + $result = trans_sql($sqlArr); + if (!$result) { + return $this->show_json(SYS_CODE_FAIL, '充值失败'); + } + return $this->show_json(SYS_CODE_SUCCESS, '充值成功'); + } + $this->data['biz'] = $biz; + $this->show_view('biz/store/add_money'); + } } diff --git a/admin/controllers/receiver/Clues.php b/admin/controllers/receiver/Clues.php index 59053e2a..643158f9 100644 --- a/admin/controllers/receiver/Clues.php +++ b/admin/controllers/receiver/Clues.php @@ -27,6 +27,7 @@ class Clues extends HD_Controller $this->load->model('auto/auto_brand_model'); $this->load->model('auto/auto_series_model'); $this->load->model('app/paic/app_paic_users_model'); + $this->load->model('receiver/receiver_enroll_model'); $this->log_dir = 'receiver_clues'; } @@ -44,7 +45,7 @@ class Clues extends HD_Controller $where = array("status" => $key); if ($this->admin_biz_str) { $where["belong_id in ($this->admin_biz_str)"] = null; - }else{ + } else { $this->belong && $where["belong_id"] = $this->belong; } $count1 = $this->clues_model->count($where); @@ -96,7 +97,7 @@ class Clues extends HD_Controller } if ($this->admin_biz_str) { $where["belong_id in ($this->admin_biz_str)"] = null; - }else{ + } else { $params['belong_id'] && $where["belong_id"] = $params['belong_id']; } //创建时间 @@ -162,7 +163,8 @@ class Clues extends HD_Controller $count = $this->clues_model->count($where); $lists = []; if ($count) { - $fileds = 'id,name,mobile,brand_id,series_id,cf_id,cf2_id,c_time,admin_id,status,status2,en_time,province_id,city_id,county_id,biz_id,p_time,u_time'; + $fileds = 'id,name,mobile,brand_id,series_id,cf_id,cf2_id,c_time,admin_id,status,status2,en_time, + province_id,city_id,county_id,biz_id,p_time,u_time,rec_time'; $rows = $this->clues_model->select($where, 'en_time desc,id desc', $page, $size, $fileds); $map_admin = $map_cf_pid = $cf_title_arr = []; @@ -259,6 +261,7 @@ class Clues extends HD_Controller if ($val['p_time'] == '0000-00-00 00:00:00') { $val['p_time'] = ''; } + $val['rec_time'] = $val['rec_time'] != '0000-00-00 00:00:00' ? $val['rec_time'] : ''; $lists[] = $val; } } @@ -266,7 +269,6 @@ class Clues extends HD_Controller $adminLists = $this->sys_admin_model->select($where, 'id desc', 0, 0, 'id,username'); $this->data['adminLists'] = $adminLists; $this->data['pager'] = array('count' => ceil($count / $size), 'curr' => $page, 'totle' => $count); - return [$lists, $count]; } @@ -298,6 +300,7 @@ class Clues extends HD_Controller $info_show['c_time'] = date('Y-m-d H:i', $re['c_time']); $info_show['en_time'] = $re['en_time']; $info_show['mobile_sub'] = $re['mobile']; + $info_show['buy_time_cn'] = $re['buy_time'] ? Receiver_clues_model::BUY_TIME_LIST[$re['buy_time']] : ''; $resLogs = $this->mdOplogs->select(array('clue_id' => $id), 'c_time desc', 0, 0); foreach ($resLogs as $key => $value) { @@ -321,6 +324,7 @@ class Clues extends HD_Controller } $info_show['logsList'] = $logsList; + $dataInfo['rec_time'] = $dataInfo['rec_time'] == '0000-00-00 00:00:00' ? '' : $dataInfo['rec_time']; //获取所在地区 $dataInfo['province_id'] = $re['province_id']; $dataInfo['city_id'] = $re['city_id']; @@ -338,12 +342,20 @@ class Clues extends HD_Controller $map_cfrom = $this->clues_cfrom_model->map('id', 'title', array('status' => 1, 'pid' => 0, 'type' => 0), '', 0, 0, 'id, title'); $map_cfrom2 = $this->clues_cfrom_model->map('id', 'title', array('status' => 1, 'pid' => $params['cfrom_id']), '', 0, 0, 'id, title'); - + //已分配门店 + $selectedBrands1 = []; + if ($dataInfo['app_id'] == Receiver_clues_model::APP_ID_ACTIVITY) { + $customerRows = $this->customers_model->select(['rid' => $re['id'], 'status >' => -1], '', '', '', 'biz_id'); + $ids = implode(',', array_column($customerRows, 'biz_id')); + $ids && $selectedBrands1 = $this->biz_model->select(["id in ($ids)" => null, 'status' => 1], '', 0, 0, 'id as biz_id,biz_name as name'); + } $this->data['cfromAry'] = $map_cfrom; $this->data['cfromAry2'] = $map_cfrom2; $this->data['provinces'] = $this->province_ary(); $this->data['info'] = $dataInfo; $this->data['info_show'] = $info_show; + $this->data['selectedBrands1'] = $selectedBrands1; + $this->data['buyTimeList'] = Receiver_clues_model::BUY_TIME_LIST; $this->data['_title'] = '线索详情'; return $this->show_view('receiver/clues/edit', true); } @@ -423,7 +435,7 @@ class Clues extends HD_Controller $this->data['limit_province_id'] = $this->limit_province_id; $this->data['_title'] = $title; - return $this->show_view('receiver/clues/get',true); + return $this->show_view('receiver/clues/get', true); } //添加单条数据 @@ -555,6 +567,19 @@ class Clues extends HD_Controller if (!$params['log']) { return $this->show_json(SYS_CODE_FAIL, '请输入内容!'); } + if(strlen($params['buy_time'])){ + $buy_time_cn = Receiver_clues_model::BUY_TIME_LIST[$params['buy_time']]; + $addData = array( + 'clue_id' => $params['id'], + 'uid' => $this->uid, + 'uname' => $this->username, + 'type' => intval($params['type']), + 'log' => '修改意向购车周期为:'.$buy_time_cn, + 'c_time' => time() + ); + $this->mdOplogs->add($addData); + $this->clues_model->update(['buy_time' => $params['buy_time']], ['id' => $params['id']]); + } $addData = array( 'clue_id' => $params['id'], 'uid' => $this->uid, @@ -716,7 +741,7 @@ class Clues extends HD_Controller 'status2' => 1, 'p_time' => date('Y-m-d H:i:s'), ]; - + $info['rec_time'] && $up_data['rec_time'] = $info['rec_time']; $ret = $this->clues_model->update($up_data, array('id' => $info['id'])); if (!$ret) { $code = SYS_CODE_FAIL; @@ -1233,4 +1258,124 @@ class Clues extends HD_Controller return $this->show_view('receiver/clues/get_admin'); } + //派单到客户池 + public function add_customer() + { + $this->load->helper("order"); + $info = $this->input->post('info'); + $bizList = $this->input->post('bizList'); + if (!count($bizList)) { + return $this->show_json(SYS_CODE_FAIL, '请选择门店'); + } + if (!$info['rec_time']) { + return $this->show_json(SYS_CODE_FAIL, '请选择回收时间'); + } + $re = $this->clues_model->get(array('id' => $info['id'])); + if (!$re || empty($re)) { + return $this->show_json(SYS_CODE_FAIL, '线索不存在!'); + } + foreach ($bizList as $item) { + $customers = $this->customers_model->get(array('rid' => $re['id'], 'status >' => -1, 'biz_id' => $item['biz_id'])); + if ($customers) { + continue; + } + $biz = $this->biz_model->get(array('id' => $item['biz_id'])); + $add = array( + 'rid' => $re['id'], + 'cid' => create_customer_no($biz['county_id']), + 'name' => $re['name'], + 'province_id' => $biz['province_id'], + 'city_id' => $biz['city_id'], + 'county_id' => $biz['county_id'], + 'mobile' => $re['mobile'], + 'biz_id' => $item['biz_id'], + 'level' => 'H', + 'cf_title' => '数字营销中台', + 'of_id' => $re['cf_id'], + 'of2_id' => $re['cf2_id'], + 'brand_id' => $re['brand_id'], + 'series_id' => $re['series_id'], + 'p_time' => date('Y-m-d H:i:s'), + 'cont_time' => $re['cont_time'], + 'cf_pid' => $re['cf_pid'], + 'c_time' => $re['c_time'], + 'rec_time' => $info['rec_time'] + ); + + $customers_id = $this->customers_model->add($add); + if (!$customers_id) { + continue; + } + //同步线索日志到客户日志 + $this->load->library('receiver/customers_entity'); + $this->customers_entity->syn_clues($customers_id, $re['id']); + //短信通知店长 +// $this->load->model('app/licheb/app_licheb_users_model'); +// $where = array('biz_id' => $biz['biz_id'], 'status' => 1, 'group_id' => 2); +// $res_u = $this->app_licheb_users_model->select($where); +// if ($res_u) { +// foreach ($res_u as $v) { +// if ($re['biz_id'] != 1) { +// b2m_send_sms($v['mobile'], '【理车宝】您好,门店新增了1个客户线索。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); +// } +// } +// } + } + $this->clues_model->update(['rec_time' => $info['rec_time'], 'p_time' => date('Y-m-d H:i:s')], ['id' => $re['id']]); + return $this->show_json(SYS_CODE_SUCCESS, '修改成功'); + } + + /** + * 删除客户派单 + * @return bool + */ + public function delete_customer() + { + $info = $this->input->post('info'); + $bizId = $this->input->post('bizId'); + if (!$bizId) { + return $this->show_json(SYS_CODE_FAIL, '请选择门店'); + } + $re = $this->clues_model->get(array('id' => $info['id'])); + if (!$re || empty($re)) { + return $this->show_json(SYS_CODE_FAIL, '线索不存在!'); + } + $this->customers_model->update(array('status' => -1), ['rid' => $re['id'], 'biz_id' => $bizId]); + return $this->show_json(SYS_CODE_SUCCESS, '修改成功'); + } + + public function enroll_list() + { + $params = $this->input->get(); + $page = $params['page'] = $params['page'] ? intval($params['page']) : 1; + $size = $params['size'] = $params['size'] ? intval($params['size']) : 20; + $list = []; + $id = intval($params['id']); + $clues = $this->clues_model->get(['id' => $id]); + if (!$clues) { + return $this->show_json(SYS_CODE_FAIL, '线索不存在!'); + } + $where = ['mobile' => $clues['mobile']]; + $count = $this->receiver_enroll_model->count($where); + if ($count) { + $rows = $this->receiver_enroll_model->select($where, 'id desc', $page, $size); + $brands = $this->auto_brand_model->get_map_by_ids(array_column($rows, 'brand_id')); + $series = $this->auto_series_model->get_map_by_ids(array_column($rows, 'series_id')); + foreach ($rows as $key => $value) { + $setValue = $value; + $setValue['mobile'] = $value['mobile']; + $setValue['c_time'] = date('Y-m-d H:i:s'); + $brandName = $brands[$value['brand_id']] ? $brands[$value['brand_id']][0]['name'] : ''; + $seriesName = $series[$value['series_id']] ? $series[$value['series_id']][0]['name'] : ''; + $cfRow = $this->clues_cfrom_model->get(['id' => $value['cf2_id']]); + $cfrom2 = $cfRow['title'] ?: ''; + $setValue['brandName'] = "{$brandName} {$seriesName}"; + $setValue['cfrom2'] = $cfrom2; + $list[] = $setValue; + } + } + $this->data['list'] = $list; + $this->data['count'] = $count; + return $this->show_json(SYS_CODE_SUCCESS); + } } diff --git a/admin/views/biz/store/add_money.php b/admin/views/biz/store/add_money.php new file mode 100644 index 00000000..2b6692ae --- /dev/null +++ b/admin/views/biz/store/add_money.php @@ -0,0 +1,18 @@ +
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+
+
\ No newline at end of file diff --git a/admin/views/biz/store/edit.php b/admin/views/biz/store/edit.php index 93d39650..a69dd215 100644 --- a/admin/views/biz/store/edit.php +++ b/admin/views/biz/store/edit.php @@ -266,6 +266,18 @@ +
@@ -366,10 +378,33 @@ cate_id: , info: , typeAry: , + auto_brands: [] }, mounted: function () { + this.init_auto_brands(); + }, + methods: { + init_auto_brands: function () { + var vm = this; + $.ajax({ + url: '/common/brands', + type: 'post', + dataType: 'json', + data: {status: 1,size:1000}, + beforeSend: function () { + }, + success: function (data) { + if (1 == data.code) { + vm.auto_brands = data.data.itemsList; + } + }, + complete: function () { + loading = 0; + layer.closeAll('loading'); + } + }); + } }, - methods: {}, created: function () { }, watch: {} diff --git a/admin/views/biz/store/lists.php b/admin/views/biz/store/lists.php index b9acb15b..f50dbe5c 100644 --- a/admin/views/biz/store/lists.php +++ b/admin/views/biz/store/lists.php @@ -48,6 +48,18 @@
+
+ +
+ +
+
+
@@ -64,14 +76,20 @@
-
+ +
+
+
@@ -82,6 +100,8 @@ ID 门店 + 品牌 + 余额 门店类型 创建时间 操作 @@ -95,9 +115,13 @@ + + + 充值 修改