├── .env.example ├── .gitattributes ├── .gitignore ├── README.md ├── app ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── RegisterController.php │ │ │ └── ResetPasswordController.php │ │ └── Controller.php │ ├── Kernel.php │ └── Middleware │ │ ├── EncryptCookies.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ └── VerifyCsrfToken.php ├── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php └── User.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── database.php ├── filesystems.php ├── mail.php ├── queue.php ├── services.php ├── session.php └── view.php ├── database ├── .gitignore ├── factories │ └── UserFactory.php ├── migrations │ ├── 2014_10_12_000000_create_users_table.php │ └── 2014_10_12_100000_create_password_resets_table.php └── seeds │ └── DatabaseSeeder.php ├── modules └── WechatPlatform │ ├── .gitignore │ ├── .php_cs │ ├── .travis.yml │ ├── README.md │ ├── composer.json │ ├── migrations │ ├── 2018_03_09_100235_create_authorizers_table.php │ ├── 2018_03_09_125705_create_oauth2_tokens_table.php │ ├── 2018_03_20_258931_add_type_and_mini_info_to_authorizers_table.php │ ├── 2018_08_06_660235_create_testers_table.php │ ├── 2018_08_09_587324_create_code_publish_table.php │ ├── 2018_08_15_124568_create_theme_table.php │ ├── 2018_08_15_234764_create_theme_template_table.php │ └── 2018_08_15_347643_create_theme_items_table.php │ ├── resources │ └── views │ │ ├── customer │ │ └── index.blade.php │ │ ├── includes │ │ └── common.blade.php │ │ ├── mini │ │ ├── code │ │ │ ├── index.blade.php │ │ │ ├── log.blade.php │ │ │ ├── model.blade.php │ │ │ └── script.blade.php │ │ ├── code_template │ │ │ ├── draft_list.blade.php │ │ │ └── template_list.blade.php │ │ ├── domain │ │ │ ├── index.blade.php │ │ │ └── script.blade.php │ │ ├── layouts │ │ │ └── bootstrap_modal.blade.php │ │ ├── tester │ │ │ └── index.blade.php │ │ └── theme │ │ │ ├── bars.blade.php │ │ │ ├── bars_create.blade.php │ │ │ ├── bars_edit.blade.php │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ ├── index.blade.php │ │ │ ├── items.blade.php │ │ │ └── script.blade.php │ │ ├── platform │ │ └── auth.blade.php │ │ └── wechat │ │ └── index.blade.php │ ├── scrutinizer.yml │ └── src │ ├── Console │ └── InstallCommand.php │ ├── Http │ ├── Controllers │ │ ├── Admin │ │ │ ├── CodeController.php │ │ │ ├── CodeTemplateController.php │ │ │ ├── CustomerController.php │ │ │ ├── DomainController.php │ │ │ ├── MiniProgramController.php │ │ │ ├── TesterController.php │ │ │ ├── ThemeController.php │ │ │ ├── UploadController.php │ │ │ └── WechatController.php │ │ ├── AuthorizerController.php │ │ ├── BroadcastController.php │ │ ├── CardController.php │ │ ├── Controller.php │ │ ├── CouponController.php │ │ ├── DataController.php │ │ ├── FansController.php │ │ ├── FansGroupController.php │ │ ├── JsController.php │ │ ├── MediasController.php │ │ ├── MenuController.php │ │ ├── MiniProgram │ │ │ ├── AppCodeController.php │ │ │ ├── BaseController.php │ │ │ ├── CodeController.php │ │ │ ├── DomainController.php │ │ │ ├── StaffController.php │ │ │ ├── TemplateMessageController.php │ │ │ └── TesterController.php │ │ ├── NoticeController.php │ │ ├── NotifyController.php │ │ ├── OAuthController.php │ │ ├── PlatformController.php │ │ ├── QRCodeController.php │ │ ├── ShortenController.php │ │ └── StaffController.php │ └── Middleware │ │ ├── ClientVerify.php │ │ └── ParameterVerify.php │ ├── Models │ ├── Authorizer.php │ ├── Clients.php │ ├── CodePublish.php │ ├── Oauth2Token.php │ ├── Testers.php │ ├── Theme.php │ ├── ThemeItems.php │ └── ThemeTemplate.php │ ├── Providers │ ├── RouteServiceProvider.php │ └── WechatPlatformServiceProvider.php │ ├── Repositories │ ├── AuthorizerRepository.php │ ├── ClientsRepository.php │ ├── CodePublishRepository.php │ ├── OAuthTokenRepository.php │ ├── TesterRepository.php │ ├── ThemeItemsRepository.php │ ├── ThemeRepository.php │ └── ThemeTemplateRepository.php │ ├── Seeds │ └── WechatPlatFormBackendTablesSeeder.php │ ├── Services │ ├── CodeService.php │ ├── CodeTemplateService.php │ ├── DomainService.php │ ├── MessageService.php │ ├── OAuthService.php │ ├── PlatformService.php │ └── TemplateMessageService.php │ ├── WechatPlatFormBackend.php │ ├── config.php │ ├── helpers.php │ ├── mini_program_errcode.php │ └── routes │ ├── admin.php │ ├── api.php │ └── web.php ├── package.json ├── phpunit.xml ├── public ├── .htaccess ├── css │ └── app.css ├── favicon.ico ├── index.php ├── js │ └── app.js ├── robots.txt └── web.config ├── resources ├── assets │ ├── js │ │ ├── app.js │ │ ├── bootstrap.js │ │ └── components │ │ │ └── ExampleComponent.vue │ └── sass │ │ ├── _variables.scss │ │ └── app.scss ├── lang │ └── en │ │ ├── auth.php │ │ ├── pagination.php │ │ ├── passwords.php │ │ └── validation.php └── views │ └── welcome.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── server.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tests ├── CreatesApplication.php ├── Feature │ └── ExampleTest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── webpack.mix.js /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_LOG_LEVEL=debug 6 | APP_URL=http://localhost 7 | 8 | DB_CONNECTION=mysql 9 | DB_HOST=127.0.0.1 10 | DB_PORT=3306 11 | DB_DATABASE=homestead 12 | DB_USERNAME=homestead 13 | DB_PASSWORD=secret 14 | 15 | BROADCAST_DRIVER=log 16 | CACHE_DRIVER=file 17 | SESSION_DRIVER=file 18 | SESSION_LIFETIME=120 19 | QUEUE_DRIVER=sync 20 | 21 | REDIS_HOST=127.0.0.1 22 | REDIS_PASSWORD=null 23 | REDIS_PORT=6379 24 | 25 | MAIL_DRIVER=smtp 26 | MAIL_HOST=smtp.mailtrap.io 27 | MAIL_PORT=2525 28 | MAIL_USERNAME=null 29 | MAIL_PASSWORD=null 30 | MAIL_ENCRYPTION=null 31 | 32 | PUSHER_APP_ID= 33 | PUSHER_APP_KEY= 34 | PUSHER_APP_SECRET= 35 | PUSHER_APP_CLUSTER=mt1 36 | 37 | 38 | WECHAT_OPEN_PLATFORM_APPID= 39 | WECHAT_OPEN_PLATFORM_SECRET= 40 | WECHAT_OPEN_PLATFORM_TOKEN= 41 | WECHAT_OPEN_PLATFORM_AES_KEY= 42 | 43 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /public/vendor 5 | /resources 6 | /storage/*.key 7 | /vendor 8 | /.idea 9 | /.vagrant 10 | Homestead.json 11 | Homestead.yaml 12 | npm-debug.log 13 | yarn-error.log 14 | .env 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # iBrand Wechat Platform open source project 2 | 3 | iBrand Wechat Platform 是一个免费开源的微信第三方平台,基于 Laravel 5.5 和 Easywechat 进行开发。 4 | 5 | ## 特性 6 | 7 | 主要实现功能: 8 | 9 | 1. 微信第三方管理后台,实现对微信公众号和微信小程序,授权的统一管理。(搭建自己的微信第三方授权平台)。 10 | 11 | 2. 提供常用微信公众号和小程序开发相关的接口。 12 | 13 | 3. 后台包括微信公众号管理和小程序管理,实现一键提交审核,发布微信小程序,自定义小程序模板等功能。 14 | 15 | > 最初使用 Easywechat 3.x 版本进行开发时,并不包含第三方平台,所以才有此项目 16 | 17 | ## 文档 18 | 19 | - [使用说明 & API](https://www.ibrand.cc/docs/wechat/v1/index) 20 | - [微信公众平台技术文档](https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1445241432) 21 | - [微信第三方平台](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419318292&token=&lang=zh_CN) 22 | 23 | ## 体验 24 | 25 | //TODO:: 26 | 27 | ## 贡献源码 28 | 29 | 该项目正在持续迭代更新中,如果你想参与到本项目中来,请提交 Pull Request ! 30 | 31 | 如果你发现任何问题或者需求,请[提交ISSUE](https://github.com/ibrandcc/laravel-wechat-platform/issues) 32 | 33 | ## 开源系列 34 | 35 | [Laravel 社交电商](https://github.com/ibrandcc/ecommerce-open-api) · [社交电商微信小程序](https://github.com/ibrandcc/miniprogram-ecommerce-open-source) · [微信第三方平台](https://github.com/ibrandcc/laravel-wechat-platform) 36 | 37 | ## 社交账号 38 | 39 | [Laravel-China](https://laravel-china.org/ibrand) · [掘金](https://juejin.im/user/5aab2cfa518825556534407a/posts) · [segmentfault](https://segmentfault.com/u/ibrand) 40 | 41 | ## 讨论交流 42 | 43 |  44 | 45 | ## 果酱云社区 46 | 47 |
48 |
49 |
50 |
51 |
66 |
67 |
68 |
69 |
审核编号 | 16 |提交审核时间 | 17 |状态 | 18 |模板ID | 19 |描述 | 20 |版本 | 21 |体验二维码 | 22 |备注 | 23 |
---|---|---|---|---|---|---|---|
{{$item->auditid}} | 31 | 32 |{{$item->audit_time}} | 33 | 34 | template)?> 35 | 36 |37 | @if($item->status==0) 38 | 审核成功 39 | @elseif($item->status==1) 40 | 审核失败 41 | @elseif($item->status==2) 42 | 待审核 43 | @elseif($item->status==3) 44 | 已发布 45 | 查看 47 | @elseif($item->status==4) 48 | 审核撤回 49 | @elseif($item->status==5) 50 | 取消发布 51 | @endif 52 | | 53 | 54 | 55 |{{$template->template_id}} | 56 | 57 |{{$template->user_desc}} | 58 | 59 |{{$template->user_version}} | 60 | 61 |62 | 查看 64 | | 65 | 66 |67 | 68 | @if($item->reason) 69 | 备注:{{$item->note}} 70 | 审核失败原因:{{$item->reason}} 71 | @else 72 | {{$item->note}} 73 | @endif 74 | 75 | | 76 | 77 |
ID | 23 |版本号 | 24 |描述 | 25 |来源小程序appid | 26 |来源小程序 | 27 |上传开发者 | 28 |最近提交时间 | 29 |操作 | 30 |
---|---|---|---|---|---|---|---|
{{$item['draft_id']}} | 37 |{{$item['user_version']}} | 38 |{{$item['user_desc']}} | 39 |{{$item['source_miniprogram_appid']}} | 40 |{{$item['source_miniprogram']}} | 41 |{{$item['developer']}} | 42 |{{date('Y-m-d H:i:s',$item['create_time'])}} | 43 | 44 |45 | 46 | 48 | 添加模板 49 | 50 | 51 | | 52 | 53 |