-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiOSModelVar.php
More file actions
56 lines (41 loc) · 1.35 KB
/
iOSModelVar.php
File metadata and controls
56 lines (41 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* Created by PhpStorm.
* User: QDFish
* Date: 2018/4/23
* Time: 上午9:15
*/
require_once "iOSModelConstant.php";
$modelURL = "http://10.10.50.205:1234/Forum_Api/v5/Account/getAccountHomepageInfo";
$desPath = "/Users/zgzheng/TouchiOS_new/TaQu/Controller/Live/Script";
$modelState = 1;//0为Item类型 1位Request类型
$requestMethod = 'POST';
$classMap = [
'account_info' => 'ForumAccountInfo',
'img_list' => 'ForumImg',
'account_detail' => 'ForumAccountDetail',
'gift_list' => 'ForumGiftIcon',
'follow_circle' => 'ForumCircle',
'circle_list' => 'ForumCirclDetail',
'gift' => 'ForumGift'
];
//下面的变量不需要修改
$domainsMap = [
"Live_Api" => [
"pre" => 'live',
"domain" => "self.liveApiDomain",
"reqType" => 'TTREQ_LIVE_SYS'
],
"Live_Trade" => [
"pre" => 'live',
"domain" => "self.liveTradeDomain",
"reqType" => 'TTREQ_LIVE_SYS'
],
"Forum_Api" => [
"pre" => 'forum',
"domain" => "self.forumDomain",
"reqType" => 'TTREQ_BBS_SYS'
],
];
$fileAnnotation = '// Created by ' . $_SERVER['USER'] . ' on ' .date('Y/m/d', $_SERVER['REQUEST_TIME']) . "\n" . '// Copyright ©' . date('Y', $_SERVER['REQUEST_TIME']) .'年 厦门海豹信息技术. All rights reserved.' . "\n//\n\n";
$modelType = ['Item', 'Request'];;