|
@@ -15,6 +15,8 @@ use \member_info;
|
|
|
|
|
|
class type
|
|
|
{
|
|
|
+ const def_usable_days = 15;
|
|
|
+
|
|
|
const MakeSendType = 0;
|
|
|
const MakeBonusRefundType = 1;
|
|
|
const MakeShakeGainType = 2;
|
|
@@ -71,6 +73,12 @@ class type
|
|
|
$this->mParam['relayer_id'] = 0;
|
|
|
}
|
|
|
|
|
|
+ if(intval($param['usable_days']) > 0) {
|
|
|
+ $this->mParam['usable_days'] = intval($param['usable_days']);
|
|
|
+ } else {
|
|
|
+ $this->mParam['usable_days'] = self::def_usable_days;
|
|
|
+ }
|
|
|
+
|
|
|
if(intval($param['send_start_date']) >= time()) {
|
|
|
$this->mParam['send_start_date'] = intval($param['send_start_date']);
|
|
|
} else {
|
|
@@ -402,6 +410,9 @@ class type
|
|
|
public function share_id() {
|
|
|
return intval($this->mParam['share_id']);
|
|
|
}
|
|
|
+ public function usable_days() {
|
|
|
+ return intval($this->mParam['usable_days']);
|
|
|
+ }
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
static public function crate_by_input($paramer)
|