Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-iOS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Opple-iOS
Commits
20a9e74c
Commit
20a9e74c
authored
Feb 20, 2017
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
1cb9debf
Hide whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
108 additions
and
132 deletions
+108
-132
AllCustomerViewController.m
Class/AllCustomerViewController.m
+1
-1
AnnouncementViewController.m
Class/Announcement/Controllers/AnnouncementViewController.m
+1
-1
AnnountcementDetailViewController.m
...ouncement/Controllers/AnnountcementDetailViewController.m
+2
-2
ApplyPrizeViewController.m
Class/ApplyPrizeViewController.m
+1
-1
BindingBankCARDViewController.m
Class/BindingBankCARDViewController.m
+1
-1
BindingSuccessViewController.m
Class/BindingSuccessViewController.m
+2
-2
CardBeenUseViewController.m
Class/CardBeenUseViewController.m
+2
-2
CardDontUseViewController.m
Class/CardDontUseViewController.m
+3
-3
CardViewController.m
Class/CardViewController.m
+2
-2
ChangePasswordViewController.m
Class/ChangePasswordViewController.m
+1
-1
ClientShoppingCarViewController.m
Class/ClientShoppingCarViewController.m
+1
-1
ClientViewController.m
Class/ClientViewController.m
+6
-6
CustomerOrderViewController.m
Class/CustomerOrderViewController.m
+2
-2
IntegralDetailsViewController.m
Class/IntegralDetailsViewController.m
+2
-2
ForumItemDetailViewController.m
...r/ComprehensiveDiscussion/ForumItemDetailViewController.m
+5
-5
ForumItemListViewController.m
...ter/ComprehensiveDiscussion/ForumItemListViewController.m
+1
-1
ForumViewController.m
...rningCenter/ComprehensiveDiscussion/ForumViewController.m
+1
-1
ReleasePostViewController.m
...enter/ComprehensiveDiscussion/ReleasePostViewController.m
+1
-1
LearningCenterMainViewController.m
...ter/LearningCenterMain/LearningCenterMainViewController.m
+1
-1
AssessmentViewController.m
.../LearningCenter/OnlineLearning/AssessmentViewController.m
+3
-3
OnlineLearningDetailViewController.m
...enter/OnlineLearning/OnlineLearningDetailViewController.m
+4
-4
OnlineLearningViewController.m
...rningCenter/OnlineLearning/OnlineLearningViewController.m
+1
-1
AnswerViewController.m
Class/LearningCenter/SkillsAssessment/AnswerViewController.m
+3
-3
EmigratedMainViewController.m
...ningCenter/SkillsAssessment/EmigratedMainViewController.m
+1
-1
LoginViewController.m
Class/Login/LoginViewController.m
+4
-4
LuckyDrawDetailsViewController.m
Class/LuckyDrawDetailsViewController.m
+1
-1
MessageViewController.m
Class/Message/Controllers/MessageViewController.m
+2
-2
OrderRecordViewController.m
Class/OrderRecordViewController.m
+1
-1
OrderdetailsViewController.m
Class/OrderdetailsViewController.m
+6
-6
PaymentsViewController.m
Class/PaymentsViewController.m
+1
-1
PerfectInformationViewController.m
Class/PerfectInformation/PerfectInformationViewController.m
+1
-1
PrizeExchangeDetailsViewController.m
Class/PrizeExchangeDetailsViewController.m
+1
-1
PrizeMainViewController.m
Class/PrizeMainViewController.m
+2
-2
ProductDetailsViewController.m
Class/ProductDetailsViewController.m
+2
-2
ProductLibraryViewController.m
Class/ProductLibraryViewController.m
+4
-4
RebateDetailsViewController.m
Class/RebateDetailsViewController.m
+2
-2
RebateViewController.m
Class/RebateViewController.m
+2
-2
SceneLibraryViewController.m
Class/SceneLibraryViewController.m
+2
-2
SearchViewController.m
Class/SearchViewController.m
+1
-1
SettlementViewController.m
Class/SettlementViewController.m
+1
-1
AddressViewController.m
Class/Shoppingcart/AddressViewController.m
+3
-3
GenerateOrdersViewController.m
Class/Shoppingcart/GenerateOrdersViewController.m
+2
-2
ShoppingViewController.m
Class/Shoppingcart/ShoppingViewController.m
+5
-5
UserViewController.m
Class/UserViewController.m
+4
-4
WithdrawalViewController.m
Class/WithdrawalViewController.m
+1
-1
BaseViewController.m
Tools/BaseViewController.m
+1
-3
PrefixHeader.pch
Tools/PrefixHeader.pch
+3
-25
SceneViewController.m
Tools/SceneViewController.m
+4
-4
ShareGoodsViewController.m
Tools/ShareGoodsViewController.m
+2
-2
ShoppingBagViewController.m
Tools/ShoppingBagViewController.m
+2
-2
No files found.
Class/AllCustomerViewController.m
View file @
20a9e74c
...
...
@@ -116,7 +116,7 @@
{
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
GETSHOPPERSCONSUMER
)
withRequestType
:
ZERO
withParameter
:
condition
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
GETSHOPPERSCONSUMER
)
withRequestType
:
ZERO
withParameter
:
condition
withReturnValueBlock
:^
(
id
returnValue
)
{
weakSelf
.
allCustomerTableview
.
emptyDataSetSource
=
weakSelf
;
weakSelf
.
allCustomerTableview
.
emptyDataSetDelegate
=
weakSelf
;
...
...
Class/Announcement/Controllers/AnnouncementViewController.m
View file @
20a9e74c
...
...
@@ -177,7 +177,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
AFFICHELIST
)
withRequestType
:
ZERO
withParameter
:
self
.
afficheModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
AFFICHELIST
)
withRequestType
:
ZERO
withParameter
:
self
.
afficheModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
announcementTableView
];
...
...
Class/Announcement/Controllers/AnnountcementDetailViewController.m
View file @
20a9e74c
...
...
@@ -101,7 +101,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];;
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
AFFICHEdETAILS
),
self
.
announcementEntity
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
AFFICHEdETAILS
),
self
.
announcementEntity
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -129,7 +129,7 @@
WS
(
weakSelf
);
NSString
*
url
=
[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
READANNOUNCEMENT
),
self
.
announcementEntity
.
fid
,[
Shoppersmanager
manager
].
Shoppers
.
employee
.
departid
,[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
,[[
NSDate
date
]
httpParameterString
]];
url
=
[
url
stringByAddingPercentEncodingWithAllowedCharacters
:[
NSCharacterSet
characterSetWithCharactersInString
:
@"`#%^{}
\"
[]|
\\
<> "
].
invertedSet
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ZERO
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ZERO
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
if
(
weakSelf
.
readBlock
)
{
...
...
Class/ApplyPrizeViewController.m
View file @
20a9e74c
...
...
@@ -133,7 +133,7 @@
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
NSLog
(
@"%@"
,[[
self
.
prizeBill
toDictionary
]
JSONString
]);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
SAVEPRIZEBILL
)
withRequestType
:
ZERO
withParameter
:
self
.
prizeBill
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
SAVEPRIZEBILL
)
withRequestType
:
ZERO
withParameter
:
self
.
prizeBill
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/BindingBankCARDViewController.m
View file @
20a9e74c
...
...
@@ -91,7 +91,7 @@
NSString
*
type
=
[
MyBankClass
returnBankName
:
entity
.
bankAccount
];
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
VALIDATION
)
withRequestType
:
ZERO
withParameter
:
entity
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
VALIDATION
)
withRequestType
:
ZERO
withParameter
:
entity
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/BindingSuccessViewController.m
View file @
20a9e74c
...
...
@@ -36,7 +36,7 @@
[
XBLoadingView
showHUDViewWithDefault
];
//发送验证码
NSString
*
urlString
=
[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
SENDSMSBANK
),
self
.
bankEntity
.
phoneNumber
,[
Shoppersmanager
manager
].
Shoppers
.
employee
.
userName
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
self
returnUrlString
:
urlString
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
self
returnUrlString
:
urlString
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
[
XBLoadingView
showHUDViewWithSuccessText
:
@"发送成功"
completeBlock
:
^
{
...
...
@@ -76,7 +76,7 @@
entity
.
smsCode
=
self
.
verificationCodeTextField
.
text
;
entity
.
bankCardType
=
self
.
bankType
;
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
BINDING
)
withRequestType
:
ZERO
withParameter
:
entity
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
BINDING
)
withRequestType
:
ZERO
withParameter
:
entity
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
[
XBLoadingView
showHUDViewWithSuccessText
:
@"绑定成功"
completeBlock
:
^
{
...
...
Class/CardBeenUseViewController.m
View file @
20a9e74c
...
...
@@ -98,7 +98,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
CARDINFORMATION
)
withRequestType
:
ZERO
withParameter
:
self
.
requestModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
CARDINFORMATION
)
withRequestType
:
ZERO
withParameter
:
self
.
requestModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
weakSelf
.
beenUseCardCollectionView
.
emptyDataSetSource
=
self
;
...
...
@@ -127,7 +127,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
USEJDECARD
),
JDECardNumber
]
withRequestType
:
ZERO
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
USEJDECARD
),
JDECardNumber
]
withRequestType
:
ZERO
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/CardDontUseViewController.m
View file @
20a9e74c
...
...
@@ -116,7 +116,7 @@
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
NSLog
(
@"%@"
,[
self
.
requestModel
toDictionary
]);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
CARDINFORMATION
)
withRequestType
:
ZERO
withParameter
:
self
.
requestModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
CARDINFORMATION
)
withRequestType
:
ZERO
withParameter
:
self
.
requestModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
weakSelf
.
dontUseCardCollectionView
.
emptyDataSetSource
=
weakSelf
;
...
...
@@ -241,7 +241,7 @@
WS
(
weakSelf
);
NSData
*
data
=
UIImageJPEGRepresentation
(
image
,
0
.
5
);
XBLoadingView
*
progressView
=
[
XBLoadingView
showHUDViewProgressLabel
:
@"上传小票中"
];
[
[
NetworkRequestClassManager
manager
]
uploadImageWithURL
:
SERVERREQUESTURL
(
UPLOADHEADER
)
withRequestType
:
ONE
withImageDatas
:
data
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
uploadImageWithURL
:
SERVERREQUESTURL
(
UPLOADHEADER
)
withRequestType
:
ONE
withImageDatas
:
data
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
[
weakSelf
activationJDECard
:
returnValue
[
@"data"
]];
...
...
@@ -270,7 +270,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
ACTIVIATIONJDECARD
),
self
.
orderNumber
,
imagePath
]
withRequestType
:
ZERO
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
ACTIVIATIONJDECARD
),
self
.
orderNumber
,
imagePath
]
withRequestType
:
ZERO
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/CardViewController.m
View file @
20a9e74c
...
...
@@ -62,7 +62,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefaultWithView
:
self
.
view
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
QUERYALLJDECARD
)
withRequestType
:
ZERO
withParameter
:
self
.
requestModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
QUERYALLJDECARD
)
withRequestType
:
ZERO
withParameter
:
self
.
requestModel
withReturnValueBlock
:^
(
id
returnValue
)
{
weakSelf
.
cardCollectionView
.
emptyDataSetSource
=
weakSelf
;
weakSelf
.
cardCollectionView
.
emptyDataSetDelegate
=
weakSelf
;
...
...
@@ -92,7 +92,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefaultWithView
:
self
.
view
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
USEJDECARD
),
JDECardNumber
]
withRequestType
:
ZERO
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
USEJDECARD
),
JDECardNumber
]
withRequestType
:
ZERO
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefaultWithView
:
weakSelf
.
view
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/ChangePasswordViewController.m
View file @
20a9e74c
...
...
@@ -80,7 +80,7 @@
//修改密码
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
MODIFYPASSWORD
)
withRequestType
:
ZERO
withParameter
:
modify
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
MODIFYPASSWORD
)
withRequestType
:
ZERO
withParameter
:
modify
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/ClientShoppingCarViewController.m
View file @
20a9e74c
...
...
@@ -75,7 +75,7 @@
{
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
SHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
shopCar
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
SHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
shopCar
withReturnValueBlock
:^
(
id
returnValue
)
{
weakSelf
.
clientShoppingCarTableView
.
emptyDataSetSource
=
weakSelf
;
weakSelf
.
clientShoppingCarTableView
.
emptyDataSetDelegate
=
weakSelf
;
...
...
Class/ClientViewController.m
View file @
20a9e74c
...
...
@@ -154,7 +154,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
GETSHOPPERSCONSUMER
)
withRequestType
:
ZERO
withParameter
:
condition
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
GETSHOPPERSCONSUMER
)
withRequestType
:
ZERO
withParameter
:
condition
withReturnValueBlock
:^
(
id
returnValue
)
{
weakSelf
.
informationTableview
.
emptyDataSetSource
=
weakSelf
;
weakSelf
.
informationTableview
.
emptyDataSetDelegate
=
weakSelf
;
...
...
@@ -419,7 +419,7 @@
WS
(
weakSelf
);
NSData
*
data
=
UIImageJPEGRepresentation
(
image
,
0
.
5
);
XBLoadingView
*
progressView
=
[
XBLoadingView
showHUDViewProgressLabel
:
@"上传头像中"
];
[
[
NetworkRequestClassManager
manager
]
uploadImageWithURL
:
SERVERREQUESTURL
(
UPLOADHEADER
)
withRequestType
:
ONE
withImageDatas
:
data
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
uploadImageWithURL
:
SERVERREQUESTURL
(
UPLOADHEADER
)
withRequestType
:
ONE
withImageDatas
:
data
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
[
weakSelf
modifyshoppersInformation
:
returnValue
[
@"data"
]
complete
:
^
{
...
...
@@ -451,7 +451,7 @@
MyclientEntityModel
*
customerEntity
=
nil
;
customerEntity
=
[
Customermanager
manager
].
model
;
customerEntity
.
picture
=
headerurl
;
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDCONSUMER
)
withRequestType
:
ZERO
withParameter
:
customerEntity
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDCONSUMER
)
withRequestType
:
ZERO
withParameter
:
customerEntity
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -488,7 +488,7 @@
-
(
void
)
SetupUserRequest
{
MyclientEntityModel
*
model
=
[
Customermanager
manager
].
model
;
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
SAVEVISITEDTIME
),
model
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
SAVEVISITEDTIME
),
model
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
NSLog
(
@"写入客户访问时间成功"
);
...
...
@@ -581,7 +581,7 @@
}
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDCONSUMER
)
withRequestType
:
ZERO
withParameter
:
customerEntity
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDCONSUMER
)
withRequestType
:
ZERO
withParameter
:
customerEntity
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -631,7 +631,7 @@
address
.
name
=
self
.
customerNameField
.
text
;
address
.
miblephone
=
self
.
phoneNumberField
.
text
;
address
.
address
=
self
.
customerAddress
.
text
;
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDADDRESS
)
withRequestType
:
ZERO
withParameter
:
address
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDADDRESS
)
withRequestType
:
ZERO
withParameter
:
address
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
...
...
Class/CustomerOrderViewController.m
View file @
20a9e74c
...
...
@@ -142,7 +142,7 @@
{
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
QUERYORDER
)
withRequestType
:
ZERO
withParameter
:
allOrder
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
QUERYORDER
)
withRequestType
:
ZERO
withParameter
:
allOrder
withReturnValueBlock
:^
(
id
returnValue
)
{
weakSelf
.
customerOrderTableView
.
emptyDataSetSource
=
weakSelf
;
weakSelf
.
customerOrderTableView
.
emptyDataSetDelegate
=
weakSelf
;
...
...
@@ -316,7 +316,7 @@
[
XBLoadingView
showHUDViewWithDefault
];
OrderBill
*
model
=
[
weakSelf
.
datasArray
objectAtIndex_opple
:
cellindex
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@/%@/%@"
,
SERVERREQUESTURL
(
RESETORDER
),
model
.
order
.
orderNumber
,
model
.
order
.
orderState
,
@"005"
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@/%@/%@"
,
SERVERREQUESTURL
(
RESETORDER
),
model
.
order
.
orderNumber
,
model
.
order
.
orderState
,
@"005"
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/IntegralDetailsViewController.m
View file @
20a9e74c
...
...
@@ -103,7 +103,7 @@
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];;
NSString
*
url
=
[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
INTEGRALQUERY
),[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
integralDetailsTableView
];
...
...
@@ -136,7 +136,7 @@
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];;
NSString
*
url
=
[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
ALLEXCHANGERECORD
),[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
integralDetailsTableView
];
...
...
Class/LearningCenter/ComprehensiveDiscussion/ForumItemDetailViewController.m
View file @
20a9e74c
...
...
@@ -106,7 +106,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
POSTDETAIL
)
withRequestType
:
ZERO
withParameter
:
self
.
condition
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
POSTDETAIL
)
withRequestType
:
ZERO
withParameter
:
self
.
condition
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -231,7 +231,7 @@
reply
.
replyerId
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
;
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
REPLYPOST
)
withRequestType
:
ZERO
withParameter
:
reply
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
REPLYPOST
)
withRequestType
:
ZERO
withParameter
:
reply
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -291,7 +291,7 @@
}
sureBlock
:^
{
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
DELETEPOST
),
self
.
topicDetail
.
fid
]
withRequestType
:
NetworkRequestWithDELETE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
DELETEPOST
),
self
.
topicDetail
.
fid
]
withRequestType
:
NetworkRequestWithDELETE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
[
XBLoadingView
showHUDViewWithSuccessText
:
@"删除成功"
completeBlock
:
^
{
...
...
@@ -333,7 +333,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
BASEREPLY
),
self
.
topicDetail
.
fid
,
replyId
,
isBest
?
@"true"
:
@"false"
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
BASEREPLY
),
self
.
topicDetail
.
fid
,
replyId
,
isBest
?
@"true"
:
@"false"
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
[
weakSelf
getPostDetailAction
:
YES
];
...
...
@@ -353,7 +353,7 @@
[
XBLoadingView
showHUDViewWithDefault
];
NSString
*
url
=
[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
PRAISE
),
self
.
topicDetail
.
fid
,
!
sender
.
selected
?
@"true"
:
@"false"
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
sender
.
selected
=
!
sender
.
selected
;
...
...
Class/LearningCenter/ComprehensiveDiscussion/ForumItemListViewController.m
View file @
20a9e74c
...
...
@@ -98,7 +98,7 @@
{
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
QUERTFORUMLIST
)
withRequestType
:
ZERO
withParameter
:
condtion
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
QUERTFORUMLIST
)
withRequestType
:
ZERO
withParameter
:
condtion
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
classificationListTableView
];
...
...
Class/LearningCenter/ComprehensiveDiscussion/ForumViewController.m
View file @
20a9e74c
...
...
@@ -51,7 +51,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];;
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
FORUMTYPS
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
FORUMTYPS
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
forumTableView
];
...
...
Class/LearningCenter/ComprehensiveDiscussion/ReleasePostViewController.m
View file @
20a9e74c
...
...
@@ -455,7 +455,7 @@
topic
.
attachments
=
(
NSArray
<
TOAttachmentEntity
>*
)
attachments
;
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
SUBMITTOPIC
)
withRequestType
:
ZERO
withParameter
:
topic
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
SUBMITTOPIC
)
withRequestType
:
ZERO
withParameter
:
topic
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/LearningCenter/LearningCenterMain/LearningCenterMainViewController.m
View file @
20a9e74c
...
...
@@ -77,7 +77,7 @@
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];;
NSString
*
url
=
[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
INTEGRALQUERY
),[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/LearningCenter/OnlineLearning/AssessmentViewController.m
View file @
20a9e74c
...
...
@@ -59,7 +59,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];;
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
STUDYITEMDETAIL
),
self
.
taskId
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
STUDYITEMDETAIL
),
self
.
taskId
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -231,7 +231,7 @@
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
NSLog
(
@"%@"
,[[
studyResult
toDictionary
]
JSONString
]);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
SUBMITANSWER
)
withRequestType
:
ZERO
withParameter
:
studyResult
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
SUBMITANSWER
)
withRequestType
:
ZERO
withParameter
:
studyResult
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -264,7 +264,7 @@
}
else
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
GETINTEGRAL
),
INSPECTIONTHROUGH
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
GETINTEGRAL
),
INSPECTIONTHROUGH
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
AssessmentQualifiedViewController
*
qualified
=
[[[
weakSelf
class
]
getLearningCenterStoryboardClass
]
instantiateViewControllerWithIdentifier
:
@"AssessmentQualifiedViewController"
];
...
...
Class/LearningCenter/OnlineLearning/OnlineLearningDetailViewController.m
View file @
20a9e74c
...
...
@@ -146,7 +146,7 @@
page
.
rows
=
9999
;
studyListModel
.
page
=
page
;
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
STUDYLIST
)
withRequestType
:
ZERO
withParameter
:
studyListModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
STUDYLIST
)
withRequestType
:
ZERO
withParameter
:
studyListModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -212,7 +212,7 @@
playTimeEntity
.
employeeId
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
;
playTimeEntity
.
playTime
=
[
NSString
stringWithFormat
:
@"%.0lf"
,
playTime
];
playTimeEntity
.
playPercent
=
[
NSString
stringWithFormat
:
@"%.2lf"
,
percent
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
ATTACHMENTPLAYTIME
)
withRequestType
:
ZERO
withParameter
:
playTimeEntity
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
ATTACHMENTPLAYTIME
)
withRequestType
:
ZERO
withParameter
:
playTimeEntity
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
attachment
.
playTime
=
playTimeEntity
.
playTime
;
...
...
@@ -255,7 +255,7 @@
dispatch_group_enter
(
group
);
[
XBLoadingView
showHUDViewWithDefault
];
// 任务一,学习项完成
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
FINISHSTUDY
),
studuEntity
.
fid
,[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
FINISHSTUDY
),
studuEntity
.
fid
,[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
dispatch_group_leave
(
group
);
if
(
RESULT
(
returnValue
))
{
...
...
@@ -269,7 +269,7 @@
}];
// 任务二,获得学习积分
dispatch_group_enter
(
group
);
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
GETINTEGRAL
),
STUDYFINISH
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
GETINTEGRAL
),
STUDYFINISH
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
dispatch_group_leave
(
group
);
if
(
RESULT
(
returnValue
))
{
...
...
Class/LearningCenter/OnlineLearning/OnlineLearningViewController.m
View file @
20a9e74c
...
...
@@ -43,7 +43,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];;
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
STUDYTYPES
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
STUDYTYPES
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/LearningCenter/SkillsAssessment/AnswerViewController.m
View file @
20a9e74c
...
...
@@ -51,7 +51,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
GETPASSLEVELDETAILS
),
self
.
passLevelId
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
GETPASSLEVELDETAILS
),
self
.
passLevelId
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
weakSelf
.
emigrated
=
[[
TOPassLevelEntity
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
...
...
@@ -263,7 +263,7 @@
}
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
SUBMITEMIGRATEDANSWER
)
withRequestType
:
ZERO
withParameter
:
studyResult
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
SUBMITEMIGRATEDANSWER
)
withRequestType
:
ZERO
withParameter
:
studyResult
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -300,7 +300,7 @@
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
NSString
*
url
=
[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
GETINTEGRAL
),
RECRUITTHROUGH
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
finish
.
state
=
ONE
;
...
...
Class/LearningCenter/SkillsAssessment/EmigratedMainViewController.m
View file @
20a9e74c
...
...
@@ -42,7 +42,7 @@
page
.
rows
=
KROWS
;
emigrated
.
page
=
page
;
[
XBLoadingView
showHUDViewWithDefault
];;
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
THROUGHLIST
)
withRequestType
:
ZERO
withParameter
:
emigrated
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
THROUGHLIST
)
withRequestType
:
ZERO
withParameter
:
emigrated
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/Login/LoginViewController.m
View file @
20a9e74c
...
...
@@ -165,7 +165,7 @@
login
.
username
=
self
.
userName
.
text
;
login
.
password
=
self
.
passWord
.
text
;
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
LOGIN
)
withRequestType
:
ZERO
withParameter
:
login
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
LOGIN
)
withRequestType
:
ZERO
withParameter
:
login
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -289,7 +289,7 @@
}
[
XBLoadingView
showHUDViewWithDefault
];
NSString
*
urlString
=
[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
SENDSMS
),
inputPhoneNumber
,
self
.
identityView
.
userName
.
text
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
self
returnUrlString
:
urlString
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
self
returnUrlString
:
urlString
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
[
XBLoadingView
showHUDViewWithText
:
@"发送验证码成功"
];
...
...
@@ -379,7 +379,7 @@
passwrod
.
username
=
self
.
userName
.
text
;
passwrod
.
smsCode
=
self
.
identityView
.
verificationCode
.
text
;
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
RESETPASSWORD
)
withRequestType
:
ZERO
withParameter
:
passwrod
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
RESETPASSWORD
)
withRequestType
:
ZERO
withParameter
:
passwrod
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -424,7 +424,7 @@
//获取服务端版本大小
WS
(
weakSelf
);
NSString
*
string
=
[
NSString
stringWithFormat
:
@"/employee/getUpgrade?apptype=IOS&version=%@"
,
version
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
string
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
string
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
NSDictionary
*
dict
=
returnValue
[
@"data"
];
...
...
Class/LuckyDrawDetailsViewController.m
View file @
20a9e74c
...
...
@@ -128,7 +128,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefaultWithView
:
self
.
view
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
LOTTERYED
)
withRequestType
:
ZERO
withParameter
:
self
.
drawModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
LOTTERYED
)
withRequestType
:
ZERO
withParameter
:
self
.
drawModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
drawDetailsTableView
];
weakSelf
.
drawDetailsTableView
.
emptyDataSetSource
=
weakSelf
;
...
...
Class/Message/Controllers/MessageViewController.m
View file @
20a9e74c
...
...
@@ -82,7 +82,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
MESSAGELIST
)
withRequestType
:
0
withParameter
:
self
.
messageModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
MESSAGELIST
)
withRequestType
:
0
withParameter
:
self
.
messageModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
meesageTableView
];
...
...
@@ -105,7 +105,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
MESSAGE_READ
),
messageId
,[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
]
withRequestType
:
0
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
MESSAGE_READ
),
messageId
,[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
]
withRequestType
:
0
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/OrderRecordViewController.m
View file @
20a9e74c
...
...
@@ -75,7 +75,7 @@
{
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
QUERYORDER
)
withRequestType
:
ZERO
withParameter
:
allOrder
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
QUERYORDER
)
withRequestType
:
ZERO
withParameter
:
allOrder
withReturnValueBlock
:^
(
id
returnValue
)
{
weakSelf
.
orderRecordTableView
.
emptyDataSetSource
=
weakSelf
;
weakSelf
.
orderRecordTableView
.
emptyDataSetDelegate
=
weakSelf
;
...
...
Class/OrderdetailsViewController.m
View file @
20a9e74c
...
...
@@ -192,7 +192,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
// 订单详情
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
ORDERDETAILS
),
self
.
orderCode
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
ORDERDETAILS
),
self
.
orderCode
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
dispatch_group_leave
(
group
);
if
(
RESULT
(
returnValue
))
{
...
...
@@ -209,7 +209,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
if
(
self
.
isShowPayButton
)
{
// 查询实时促销信息
dispatch_group_enter
(
group
);
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
PROMOTIONAL
),
self
.
orderCode
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
PROMOTIONAL
),
self
.
orderCode
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
dispatch_group_leave
(
group
);
[
XBLoadingView
hideHUDViewWithDefault
];
...
...
@@ -254,7 +254,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
}
else
{
// 查询历史促销信息
dispatch_group_enter
(
group
);
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
OLDPROMOTIONAL
),
self
.
orderCode
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
OLDPROMOTIONAL
),
self
.
orderCode
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
dispatch_group_leave
(
group
);
[
XBLoadingView
hideHUDViewWithDefault
];
...
...
@@ -347,7 +347,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
page
.
page
=
ZERO
;
page
.
rows
=
ONE
;
queryDrawState
.
page
=
page
;
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
LOTTERYED
)
withRequestType
:
ZERO
withParameter
:
queryDrawState
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
LOTTERYED
)
withRequestType
:
ZERO
withParameter
:
queryDrawState
withReturnValueBlock
:^
(
id
returnValue
)
{
dispatch_group_leave
(
group
);
if
(
RESULT
(
returnValue
))
{
NSDictionary
*
dict
=
[
returnValue
[
@"data"
][
@"list"
]
firstObject
];
...
...
@@ -532,7 +532,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
USEWECHATCARD
,
number
,
orderNumber
,
orderTotal
]
withRequestType
:
ZERO
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
USEWECHATCARD
,
number
,
orderNumber
,
orderTotal
]
withRequestType
:
ZERO
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -1027,7 +1027,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:
@"确认"
style
:
UIAlertActionStyleDestructive
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@/%@/%@"
,
SERVERREQUESTURL
(
RESETORDER
),
_orderCode
,
@"001"
,
@"005"
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@/%@/%@"
,
SERVERREQUESTURL
(
RESETORDER
),
_orderCode
,
@"001"
,
@"005"
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
[
XBLoadingView
showHUDViewWithSuccessText
:
@"撤销成功"
completeBlock
:
nil
];
...
...
Class/PaymentsViewController.m
View file @
20a9e74c
...
...
@@ -98,7 +98,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefaultWithView
:
self
.
view
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
PAYMENTS
)
withRequestType
:
ZERO
withParameter
:
self
.
model
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
PAYMENTS
)
withRequestType
:
ZERO
withParameter
:
self
.
model
withReturnValueBlock
:^
(
id
returnValue
)
{
weakSelf
.
paymentsTableView
.
emptyDataSetSource
=
weakSelf
;
weakSelf
.
paymentsTableView
.
emptyDataSetDelegate
=
weakSelf
;
...
...
Class/PerfectInformation/PerfectInformationViewController.m
View file @
20a9e74c
...
...
@@ -172,7 +172,7 @@
employ
.
employee
.
birthday
=
[
NSString
stringWithFormat
:
@"%@ 00:00:00"
,
self
.
informationArray
[
1
][
2
]];
employ
.
employee
.
mobilePhone
=
self
.
informationArray
[
1
][
3
];
employ
.
employee
.
isComplete
=
YES
;
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
MODITYSHOPPERSINFORMATION
)
withRequestType
:
ZERO
withParameter
:
employ
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
MODITYSHOPPERSINFORMATION
)
withRequestType
:
ZERO
withParameter
:
employ
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/PrizeExchangeDetailsViewController.m
View file @
20a9e74c
...
...
@@ -52,7 +52,7 @@
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];;
NSString
*
url
=
[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
PRIZEBILLDETAILS
),
self
.
prizeBillNumber
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/PrizeMainViewController.m
View file @
20a9e74c
...
...
@@ -88,7 +88,7 @@
dispatch_group_t
group
=
dispatch_group_create
();
dispatch_group_enter
(
group
);
//任务一 请求奖品列表
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
PRIZELIST
)
withRequestType
:
ZERO
withParameter
:
self
.
queryPrizeModel
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
PRIZELIST
)
withRequestType
:
ZERO
withParameter
:
self
.
queryPrizeModel
withReturnValueBlock
:^
(
id
returnValue
)
{
dispatch_group_leave
(
group
);
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
prizeListCollectionView
];
weakSelf
.
prizeListCollectionView
.
emptyDataSetSource
=
weakSelf
;
...
...
@@ -113,7 +113,7 @@
}];
//任务二 查询是否有兑换资格
dispatch_group_enter
(
group
);
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
EXCHANGEQUALIFICATION
),[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
EXCHANGEQUALIFICATION
),[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
dispatch_group_leave
(
group
);
if
(
RESULT
(
returnValue
))
{
...
...
Class/ProductDetailsViewController.m
View file @
20a9e74c
...
...
@@ -91,7 +91,7 @@
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
GOODSDETAILS
),
_goodsID
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
url
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -385,7 +385,7 @@
shopCar
.
count
=
self
.
headerView
.
goodsNumber
.
text
;
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDSHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
shopCar
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDSHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
shopCar
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/ProductLibraryViewController.m
View file @
20a9e74c
...
...
@@ -158,7 +158,7 @@
-
(
void
)
getScreeningdatasisRemoveArray
:
(
BOOL
)
remove
{
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
PRODUCTSCREENING
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
PRODUCTSCREENING
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
if
(
remove
)
{
...
...
@@ -189,7 +189,7 @@
{
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
PRODUCTLIST
)
withRequestType
:
ZERO
withParameter
:
conditon
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
PRODUCTLIST
)
withRequestType
:
ZERO
withParameter
:
conditon
withReturnValueBlock
:^
(
id
returnValue
)
{
weakSelf
.
productCollectionView
.
emptyDataSetSource
=
weakSelf
;
weakSelf
.
productCollectionView
.
emptyDataSetDelegate
=
weakSelf
;
...
...
@@ -343,7 +343,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
BARCODESEARCH
),
_barcode
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
BARCODESEARCH
),
_barcode
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
weakSelf
endRefreshingForTableView
:
self
.
productCollectionView
];
[
XBLoadingView
hideHUDViewWithDefault
];
...
...
@@ -715,7 +715,7 @@
shopCar
.
consumerId
=
[
Customermanager
manager
].
model
.
fid
;
shopCar
.
goodsId
=
model
.
fid
;
shopCar
.
count
=
@"1"
;
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDSHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
shopCar
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDSHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
shopCar
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
response
();
}
else
...
...
Class/RebateDetailsViewController.m
View file @
20a9e74c
...
...
@@ -58,7 +58,7 @@
withdrawal
.
billType
=
weakSelf
.
billType
;
withdrawal
.
bankCardNumber
=
weakSelf
.
bankCardNumber
;
NSLog
(
@"%@"
,[[
withdrawal
toDictionary
]
JSONString
]);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
WITHDRAWAL
)
withRequestType
:
ZERO
withParameter
:
withdrawal
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
WITHDRAWAL
)
withRequestType
:
ZERO
withParameter
:
withdrawal
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
weakSelf
.
applyUUID
=
returnValue
[
@"data"
];
...
...
@@ -103,7 +103,7 @@
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
NSString
*
urlString
=
[
NSString
stringWithFormat
:
@"%@/%@"
,
WITHDRAWALPROGRESSDETAILS
,
self
.
applyUUID
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
urlString
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
urlString
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
TOApplyBillEntity
*
result
=
[[
TOApplyBillEntity
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
...
...
Class/RebateViewController.m
View file @
20a9e74c
...
...
@@ -155,7 +155,7 @@
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@/%@"
,
REBATE
,[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
url
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
url
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -273,7 +273,7 @@
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
TOBankCardEntity
*
entity
=
self
.
resultEntity
.
bankCards
[
0
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
UNBINDING
),
entity
.
bankAccount
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
UNBINDING
),
entity
.
bankAccount
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/SceneLibraryViewController.m
View file @
20a9e74c
...
...
@@ -140,7 +140,7 @@
-
(
void
)
getdatasAction
{
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
SCENESCREENING
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
SCENESCREENING
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
weakSelf
.
filter
=
[[
SceneFilter
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
...
...
@@ -160,7 +160,7 @@
{
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
SCENELIST
)
withRequestType
:
ZERO
withParameter
:
condition
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
SCENELIST
)
withRequestType
:
ZERO
withParameter
:
condition
withReturnValueBlock
:^
(
id
returnValue
)
{
weakSelf
.
seceneLibararyCollectionView
.
emptyDataSetSource
=
weakSelf
;
weakSelf
.
seceneLibararyCollectionView
.
emptyDataSetDelegate
=
weakSelf
;
...
...
Class/SearchViewController.m
View file @
20a9e74c
...
...
@@ -153,7 +153,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
HOTSEARCH
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
HOTSEARCH
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/SettlementViewController.m
View file @
20a9e74c
...
...
@@ -471,7 +471,7 @@
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
NSLog
(
@"%@"
,[
order
toDictionary
]);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
CONFIRMPAY
)
withRequestType
:
ZERO
withParameter
:
order
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
CONFIRMPAY
)
withRequestType
:
ZERO
withParameter
:
order
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/Shoppingcart/AddressViewController.m
View file @
20a9e74c
...
...
@@ -186,7 +186,7 @@
address
.
address
=
self
.
detailsAddress
.
text
;
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDADDRESS
)
withRequestType
:
ZERO
withParameter
:
address
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDADDRESS
)
withRequestType
:
ZERO
withParameter
:
address
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -239,7 +239,7 @@
address
.
fid
=
self
.
model
.
fid
;
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
CHANGEADDRESS
)
withRequestType
:
ZERO
withParameter
:
address
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
CHANGEADDRESS
)
withRequestType
:
ZERO
withParameter
:
address
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -295,7 +295,7 @@
{
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
REMOVEADDRESS
),
_model
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
REMOVEADDRESS
),
_model
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/Shoppingcart/GenerateOrdersViewController.m
View file @
20a9e74c
...
...
@@ -112,7 +112,7 @@
{
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
SHIPPINGADDRESS
),[
Customermanager
manager
].
model
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
SHIPPINGADDRESS
),[
Customermanager
manager
].
model
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -393,7 +393,7 @@
order
.
orderdetailList
=
(
NSArray
<
TOOrderdetailEntity
>
*
)
goodidArr
;
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
CREATEORDER
)
withRequestType
:
ZERO
withParameter
:
order
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
CREATEORDER
)
withRequestType
:
ZERO
withParameter
:
order
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
//商品购物车id
...
...
Class/Shoppingcart/ShoppingViewController.m
View file @
20a9e74c
...
...
@@ -237,7 +237,7 @@
shopcarNumber
.
dp
=
Newpage
;
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
SHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
shopcarNumber
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
SHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
shopcarNumber
withReturnValueBlock
:^
(
id
returnValue
)
{
weakSelf
.
shoppingTableview
.
emptyDataSetSource
=
weakSelf
;
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
shoppingTableview
];
...
...
@@ -368,7 +368,7 @@
DeleteCartRequest
*
delecteGoods
=
[[
DeleteCartRequest
alloc
]
init
];
delecteGoods
.
cartIds
=
goodsCode
;
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
REMOVESHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
delecteGoods
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
REMOVESHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
delecteGoods
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -465,7 +465,7 @@
}
delecteGoods
.
cartIds
=
codeArr
;
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
REMOVESHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
delecteGoods
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
REMOVESHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
delecteGoods
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -504,7 +504,7 @@
dispatch_group_enter
(
group
);
NSLog
(
@"%@"
,[
NSString
stringWithFormat
:
@"%@%@/%@/%@/%ld"
,
SERVERREQUESTURL
(
CHANGESHOPPINGBAGNUMBERPRICE
),
model
.
fid
,
model
.
goodsId
,[
model
.
costPrice
stringValue
],
model
.
goodsNum
]);
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@/%@/%@/%ld"
,
SERVERREQUESTURL
(
CHANGESHOPPINGBAGNUMBERPRICE
),
model
.
fid
,
model
.
goodsId
,[
model
.
costPrice
stringValue
],
model
.
goodsNum
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@/%@/%@/%ld"
,
SERVERREQUESTURL
(
CHANGESHOPPINGBAGNUMBERPRICE
),
model
.
fid
,
model
.
goodsId
,[
model
.
costPrice
stringValue
],
model
.
goodsNum
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
dispatch_group_leave
(
group
);
if
(
RESULT
(
returnValue
))
{
...
...
@@ -549,7 +549,7 @@
//商品数量
NSString
*
goodsNumberString
=
[
NSString
stringWithFormat
:
@"%ld"
,(
long
)
goodsNumber
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@/%@/%@/%@"
,
SERVERREQUESTURL
(
CHANGESHOPPINGBAGNUMBERPRICE
),
carid
,
goodsis
,
costpriceString
,
goodsNumberString
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@/%@/%@/%@"
,
SERVERREQUESTURL
(
CHANGESHOPPINGBAGNUMBERPRICE
),
carid
,
goodsis
,
costpriceString
,
goodsNumberString
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
result
(
returnValue
);
//提供是否支持修改的参数
...
...
Class/UserViewController.m
View file @
20a9e74c
...
...
@@ -147,7 +147,7 @@
WS
(
weakSelf
);
NSData
*
data
=
UIImageJPEGRepresentation
(
image
,
0
.
5
);
XBLoadingView
*
progressView
=
[
XBLoadingView
showHUDViewProgressLabel
:
@"上传头像中"
];
[
[
NetworkRequestClassManager
manager
]
uploadImageWithURL
:
SERVERREQUESTURL
(
UPLOADHEADER
)
withRequestType
:
ONE
withImageDatas
:
data
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
uploadImageWithURL
:
SERVERREQUESTURL
(
UPLOADHEADER
)
withRequestType
:
ONE
withImageDatas
:
data
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
[
weakSelf
modifyshoppersInformation
:
returnValue
[
@"data"
]
complete
:
^
{
...
...
@@ -179,7 +179,7 @@
RsEmployeeRequest
*
employ
=
[[
RsEmployeeRequest
alloc
]
init
];
employ
.
employee
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
;
employ
.
employee
.
picture
=
headerurl
;
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
MODITYSHOPPERSINFORMATION
)
withRequestType
:
ZERO
withParameter
:
employ
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
MODITYSHOPPERSINFORMATION
)
withRequestType
:
ZERO
withParameter
:
employ
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -213,7 +213,7 @@
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:
@"确认"
style
:
UIAlertActionStyleDestructive
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[
XBLoadingView
showHUDViewWithDefault
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
CANCELLOGIN
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
CANCELLOGIN
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -277,7 +277,7 @@
login
.
username
=
self
.
userName
.
text
;
login
.
password
=
self
.
passWord
.
text
;
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
LOGIN
)
withRequestType
:
ZERO
withParameter
:
login
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
LOGIN
)
withRequestType
:
ZERO
withParameter
:
login
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
Class/WithdrawalViewController.m
View file @
20a9e74c
...
...
@@ -98,7 +98,7 @@
{
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefaultWithView
:
self
.
view
];
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
WITHDRAWALPROGRESS
)
withRequestType
:
ZERO
withParameter
:
self
.
model
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
WITHDRAWALPROGRESS
)
withRequestType
:
ZERO
withParameter
:
self
.
model
withReturnValueBlock
:^
(
id
returnValue
)
{
weakSelf
.
withdrawalTableView
.
emptyDataSetSource
=
weakSelf
;
weakSelf
.
withdrawalTableView
.
emptyDataSetDelegate
=
weakSelf
;
...
...
Tools/BaseViewController.m
View file @
20a9e74c
...
...
@@ -426,7 +426,7 @@
#pragma mark -查询购物车数量
-
(
void
)
QueryShoppingCarNumber
{
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
QUERYSHOPPINGBAGNUMBER
),[
Customermanager
manager
].
model
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
QUERYSHOPPINGBAGNUMBER
),[
Customermanager
manager
].
model
.
fid
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
NSLog
(
@"更新购物车数量成功"
);
...
...
@@ -682,8 +682,6 @@
}
-
(
void
)
dealloc
{
NSLog
(
@"释放%@控制器"
,
self
);
...
...
Tools/PrefixHeader.pch
View file @
20a9e74c
...
...
@@ -57,34 +57,12 @@
#import "CustomTOAfficheEntity.h"
#import "ICRPlaceholderTextView.h"
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
/**
* 禁止所有的打印,打包时使用
*/
//#ifdef DEBUG
//#define NSLog(...) NSLog(__VA_ARGS__)
//#define debugMethod() NSLog(@"%s", __func__)
//#else
//#define NSLog(...)
//#define debugMethod()
//#endif
//
//#ifdef DEBUG
//
//#define NSLog(FORMAT, ...) fprintf(stderr,"%s:%d\t%s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
//
//#else
//
//#define NSLog(...)
//
//#endif
/**
判断请求是否成功
*/
//判断请求是否成功
#define RESULT(response) [returnValue[@"code"] isEqualToNumber:@0]
//网络请求
#define HTTP [NetworkRequestClassManager manager]
/**
保存账号密码serviceName
...
...
Tools/SceneViewController.m
View file @
20a9e74c
...
...
@@ -237,7 +237,7 @@
{
WS
(
weakSelf
);
//场景筛选条件
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
SCENESCREENING
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
SCENESCREENING
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
SceneFilter
*
filterModel
=
[[
SceneFilter
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
...
...
@@ -301,7 +301,7 @@
-
(
void
)
getSceneLibrarydatas
:
(
SceneCondition
*
)
condition
isRemove
:
(
BOOL
)
remove
{
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
SCENELIST
)
withRequestType
:
ZERO
withParameter
:
condition
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
SCENELIST
)
withRequestType
:
ZERO
withParameter
:
condition
withReturnValueBlock
:^
(
id
returnValue
)
{
weakSelf
.
sceneOrProductClollectionView
.
emptyDataSetSource
=
weakSelf
;
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
sceneOrProductClollectionView
];
...
...
@@ -378,7 +378,7 @@
-
(
void
)
getScreeningdatasisRemoveArray
:
(
BOOL
)
remove
{
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
PRODUCTSCREENING
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
PRODUCTSCREENING
)
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
...
...
@@ -511,7 +511,7 @@
-
(
void
)
getGoodsListdatas
:
(
GoodsCondition
*
)
conditon
returnResponse
:
(
void
(
^
)(
GoodsResponse
*
))
finish
{
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
PRODUCTLIST
)
withRequestType
:
ZERO
withParameter
:
conditon
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
PRODUCTLIST
)
withRequestType
:
ZERO
withParameter
:
conditon
withReturnValueBlock
:^
(
id
returnValue
)
{
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
sceneOrProductClollectionView
];
if
(
RESULT
(
returnValue
))
{
...
...
Tools/ShareGoodsViewController.m
View file @
20a9e74c
...
...
@@ -32,7 +32,7 @@
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
[
XBLoadingView
showHUDViewWithDefault
];
NSString
*
shareOrderString
=
[
NSString
stringWithFormat
:
@"%@/%@"
,
SHAREORDERBILL
,
self
.
orderBillNumber
];
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
shareOrderString
)
withRequestType
:
ZERO
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
shareOrderString
)
withRequestType
:
ZERO
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -53,7 +53,7 @@
NSString
*
goodsID
=
[
self
.
goodsIds
substringToIndex
:[
self
.
goodsIds
length
]
-
1
];
NSDictionary
*
parameterDict
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:[
goodsID
substringToIndex
:
self
.
goodsIds
.
length
-
1
],
@"goodsIds"
,
@""
,
@"title"
,
@""
,
@"remark"
,
nil
];
XBLoadingView
*
progressView
=
[
XBLoadingView
showHUDViewProgressLabel
:
@"上传图片中"
];
[
[
NetworkRequestClassManager
manager
]
uploadImageWithURL
:
SERVERREQUESTURL
(
SHARE
)
withRequestType
:
ZERO
withImageDatas
:
imageData
withParameter
:
parameterDict
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
uploadImageWithURL
:
SERVERREQUESTURL
(
SHARE
)
withRequestType
:
ZERO
withImageDatas
:
imageData
withParameter
:
parameterDict
withReturnValueBlock
:^
(
id
returnValue
)
{
if
(
RESULT
(
returnValue
))
{
NSString
*
shareWeb
=
returnValue
[
@"data"
][
@"url"
];
...
...
Tools/ShoppingBagViewController.m
View file @
20a9e74c
...
...
@@ -255,7 +255,7 @@
shopCar
.
goodsId
=
[
goodsIds
substringToIndex
:
goodsIds
.
length
-
1
];
shopCar
.
count
=
[
goodsCounts
substringToIndex
:
goodsCounts
.
length
-
1
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDSHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
shopCar
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
ADDSHOPPINGBAG
)
withRequestType
:
ZERO
withParameter
:
shopCar
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
if
(
RESULT
(
returnValue
))
{
...
...
@@ -305,7 +305,7 @@
//商品数量
NSString
*
goodsNumberString
=
[
NSString
stringWithFormat
:
@"%ld"
,(
long
)
goodsNumber
];
WS
(
weakSelf
);
[
[
NetworkRequestClassManager
manager
]
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@/%@/%@/%@"
,
SERVERREQUESTURL
(
CHANGESHOPPINGBAGNUMBERPRICE
),
carid
,
goodsis
,
costpriceString
,
goodsNumberString
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@/%@/%@/%@"
,
SERVERREQUESTURL
(
CHANGESHOPPINGBAGNUMBERPRICE
),
carid
,
goodsis
,
costpriceString
,
goodsNumberString
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
result
(
returnValue
);
//提供是否支持修改的参数
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment