|
@@ -557,6 +557,28 @@ class Tool
|
|
|
return 'ok';
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ public function order_agreement_up_api()
|
|
|
+ {
|
|
|
+ $where['soft_cash'] = 1;
|
|
|
+ $data = Dever::db('agent/order')->getDataBySoft($where);
|
|
|
+ $test = Dever::input('test');
|
|
|
+ if ($data) {
|
|
|
+ if ($test == 1) {
|
|
|
+ print_r($data);die;
|
|
|
+ }
|
|
|
+
|
|
|
+ foreach ($data as $k => $v) {
|
|
|
+ $info = Dever::db('agent/member_agreement')->find(array('order_id' => $v['id'], 'agreement_id' => 1));
|
|
|
+ if ($info) {
|
|
|
+ Dever::load('agent/lib/agreement')->upContent($info['id']);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return 'ok';
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
public function upSell_api()
|
|
|
{
|