| 3 |
from shop2020.thriftpy.utils.ttypes import UserSmsInfo, SmsType
|
3 |
from shop2020.thriftpy.utils.ttypes import UserSmsInfo, SmsType
|
| 5 |
db = MySQLdb.connect('localhost',"root","shop2020","dtr" )
|
5 |
db = MySQLdb.connect('192.168.158.89',"root","shop2020","dtr" )
|
| 8 |
SMS_DATA_SQL="select us.user_id, ua.account_key, u.mobile_number, us.comment saholic_user_id from user_activity_status us join users u on us.user_id = u.id join usergroups ug on u.usergroup_id = ug.id join user_accounts ua on us.user_id = ua.user_id where comment in ('Uninstall','Probable uninstall') and last_active < '2015-07-01' and ug.groupbasis ='Not_Defined' and ua.account_type ='saholic' and trim(coalesce(u.mobile_number, '')) <>''"
|
8 |
SMS_DATA_SQL="select us.user_id, ua.account_key, u.mobile_number, us.comment saholic_user_id from user_activity_status us join users u on us.user_id = u.id join usergroups ug on u.usergroup_id = ug.id join user_accounts ua on us.user_id = ua.user_id where comment in ('Uninstall','Probable uninstall') and last_active < '2015-07-01' and ug.groupbasis ='Not_Defined' and ua.account_type ='saholic' and trim(coalesce(u.mobile_number, '')) <>''"
|
| 10 |
def send_transaction_sms(customerId, mobileNo, smsText, smsType):
|
10 |
def send_transaction_sms(customerId, mobileNo, smsText, smsType):
|