123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace app\api\controller;
- class Document extends MobileMall
- {
- public function initialize()
- {
- parent::initialize();
- }
-
- public function agreement()
- {
- $type = input('param.type');
- if (!$type) {
- $type = 'agreement';
- }
- $doc = model('document')->getOneDocumentByCode($type);
- $doc['document_content'] = htmlspecialchars_decode($doc['document_content']);
- ds_json_encode(10000, '', $doc);
- }
- }
|