|
@@ -224,8 +224,8 @@
|
|
});
|
|
});
|
|
}]);
|
|
}]);
|
|
|
|
|
|
- app.controller('dreamDetailCtrl', ["$scope","$location","$ionicHistory","$timeout","$ionicLoading", "$state", "WechatService","$ionicModal","storage","msg", "common", "config", "homeService", "$ionicTabsDelegate", "$stateParams","$ionicBackdrop", "$ionicScrollDelegate", "$interval"
|
|
|
|
- , function ($scope,$location, $ionicHistory,$timeout,$ionicLoading,$state,WechatService,$ionicModal, storage , msg, common, config, homeService, $ionicTabsDelegate, $stateParams,$ionicBackdrop, $ionicScrollDelegate, $interval) {
|
|
|
|
|
|
+ app.controller('dreamDetailCtrl', ["$scope","$location","$ionicHistory","$timeout","$ionicLoading", "$state", 'userService',"WechatService","$ionicModal","storage","msg", "common", "config", "homeService", "$ionicTabsDelegate", "$stateParams","$ionicBackdrop", "$ionicScrollDelegate", "$interval"
|
|
|
|
+ , function ($scope,$location, $ionicHistory,$timeout,$ionicLoading,$state,userService,WechatService,$ionicModal, storage , msg, common, config, homeService, $ionicTabsDelegate, $stateParams,$ionicBackdrop, $ionicScrollDelegate, $interval) {
|
|
var dream_user_id = $stateParams.dream_user_id;
|
|
var dream_user_id = $stateParams.dream_user_id;
|
|
var id = $stateParams.id;
|
|
var id = $stateParams.id;
|
|
var interaction_id = $stateParams.interaction_id;
|
|
var interaction_id = $stateParams.interaction_id;
|
|
@@ -255,11 +255,10 @@
|
|
|
|
|
|
$scope.isTest = true;
|
|
$scope.isTest = true;
|
|
userService.isTest().then(function(res){
|
|
userService.isTest().then(function(res){
|
|
- if(res.data.data){
|
|
|
|
- $scope.isTest = true;
|
|
|
|
- }
|
|
|
|
- else{
|
|
|
|
|
|
+ if(res.data.data==1){
|
|
$scope.isTest = false;
|
|
$scope.isTest = false;
|
|
|
|
+ }else{
|
|
|
|
+ $scope.isTest = true;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
@@ -901,7 +900,7 @@
|
|
$scope.rechagemodal.show();
|
|
$scope.rechagemodal.show();
|
|
$scope.vm.money = '';
|
|
$scope.vm.money = '';
|
|
if($scope.ios.isIOS){
|
|
if($scope.ios.isIOS){
|
|
- var productIds = ['apple1001','apple1002','apple1003','apple1004']; // <- Add your product Ids here
|
|
|
|
|
|
+ var productIds = ['apple10001','apple102','apple103','apple104']; // <- Add your product Ids here
|
|
msg.loading();
|
|
msg.loading();
|
|
inAppPurchase.getProducts(productIds).then(function (products) {
|
|
inAppPurchase.getProducts(productIds).then(function (products) {
|
|
msg.hide();
|
|
msg.hide();
|